==================== Test output for //pkg/ddl:ddl_test (shard 17 of 50): === RUN TestCancel [2024/05/06 09:46:51.647 +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:46:51.648 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:51.648 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:51.650 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:51.650 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:51.655 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(65535) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:51.657 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=d255cb94-099f-4d12-a178-fd6610e1619d] ["ddl lease"=100ms] ["stats lease"=-1ns] [2024/05/06 09:46:51.670 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:46:51.670 +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:46:51.671 +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:46:51.675 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=0] ["start time"=4.050331ms] [2024/05/06 09:46:51.676 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:46:51.676 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=751b92d4-4297-4a09-baa3-2bcdb38dc08a] [runWorker=true] [2024/05/06 09:46:51.676 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:46:51.676 +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:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:46:51.676 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:46:51.676 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:46:51.679 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:46:51.680 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:46:51.680 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:46:51.680 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:46:51.730 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:46:51.730 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:46:51.731 +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).loadSchemaInLoop\n\tpkg/domain/domain.go:914\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"] [version=0] [2024/05/06 09:46:51.780 +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).loadSchemaInLoop\n\tpkg/domain/domain.go:914\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"] [version=0] [2024/05/06 09:46:51.831 +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).loadSchemaInLoop\n\tpkg/domain/domain.go:914\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"] [version=0] [2024/05/06 09:46:51.883 +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).loadSchemaInLoop\n\tpkg/domain/domain.go:914\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"] [version=0] [2024/05/06 09:46:51.884 +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:46:51.893 +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:46:51.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:51.893 +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:46:51.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS test"] [2024/05/06 09:46:51.901 +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:46:51.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.908 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=1] ["start time"=3.43777ms] [2024/05/06 09:46:51.909 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:46:51.910 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:51.910 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=3] [version=1] [2024/05/06 09:46:51.911 +00:00] [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.45457ms] [job="ID:3, Type:create schema, State:done, SchemaState:public, SchemaID:2, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:46:51.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.919 +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:46:51.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.922 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=3] [2024/05/06 09:46:51.922 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:51.923 +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:46:51.924 +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:46:51.933 +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:46:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:51.933 +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:46:51.926 +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:46:51.942 +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:46:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.955 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=1] [neededSchemaVersion=2] ["start time"=1.09073ms] [gotSchemaVersion=2] [phyTblIDs="[4]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:51.956 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:51.956 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=5] [version=2] [2024/05/06 09:46:51.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=2] ["take time"=7.363425ms] [job="ID:5, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:4, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.971 +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:46:51.926 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:51.980 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=5] [2024/05/06 09:46:51.980 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:51.980 +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:46:52.001 +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:46:51.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.001 +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:46:51.99 +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:46:52.028 +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:46:51.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.033 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=2] [neededSchemaVersion=3] ["start time"=321.548µs] [gotSchemaVersion=3] [phyTblIDs="[6]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.034 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.034 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=7] [version=3] [2024/05/06 09:46:52.054 +00:00] [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"=22.124281ms] [job="ID:7, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:6, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:51.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.079 +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:46:51.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.093 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=7] [2024/05/06 09:46:52.093 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.094 +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:46:52.096 +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:46:52.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.096 +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:46:52.095 +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:46:52.117 +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:46:52.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.120 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=3] [neededSchemaVersion=4] ["start time"=264.639µs] [gotSchemaVersion=4] [phyTblIDs="[8]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.122 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.122 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=9] [version=4] [2024/05/06 09:46:52.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=4] ["take time"=2.457941ms] [job="ID:9, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:8, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.135 +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:46:52.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.152 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=9] [2024/05/06 09:46:52.152 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.153 +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:46:52.158 +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:46:52.155 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.158 +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:46:52.155 +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:46:52.164 +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:46:52.155 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.181 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=4] [neededSchemaVersion=5] ["start time"=639.732µs] [gotSchemaVersion=5] [phyTblIDs="[10]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.182 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.182 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=11] [version=5] [2024/05/06 09:46:52.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"=5.513993ms] [job="ID:11, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:10, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.155 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.197 +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:46:52.155 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.206 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=11] [2024/05/06 09:46:52.206 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.207 +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:46:52.213 +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:46:52.211 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.213 +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:46:52.211 +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:46:52.222 +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:46:52.211 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.226 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=5] [neededSchemaVersion=6] ["start time"=380.312µs] [gotSchemaVersion=6] [phyTblIDs="[12]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.228 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.228 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=13] [version=6] [2024/05/06 09:46:52.228 +00:00] [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.046505ms] [job="ID:13, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:12, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.211 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.233 +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:46:52.211 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.251 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=13] [2024/05/06 09:46:52.251 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.252 +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:46:52.255 +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:46:52.253 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.255 +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:46:52.253 +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:46:52.284 +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:46:52.253 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.291 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=6] [neededSchemaVersion=7] ["start time"=3.389959ms] [gotSchemaVersion=7] [phyTblIDs="[14]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.301 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.301 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=15] [version=7] [2024/05/06 09:46:52.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=7] ["take time"=14.072591ms] [job="ID:15, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:14, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.253 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.308 +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:46:52.253 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.316 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=15] [2024/05/06 09:46:52.316 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.317 +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:46:52.326 +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:46:52.324 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.326 +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:46:52.324 +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:46:52.333 +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:46:52.324 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.350 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=7] [neededSchemaVersion=8] ["start time"=240.469µs] [gotSchemaVersion=8] [phyTblIDs="[16]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.352 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.352 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=17] [version=8] [2024/05/06 09:46:52.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=8] ["take time"=7.137372ms] [job="ID:17, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:16, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.324 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.373 +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:46:52.324 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.389 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=17] [2024/05/06 09:46:52.389 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.389 +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:46:52.395 +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:46:52.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.395 +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:46:52.391 +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:46:52.412 +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:46:52.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.415 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=8] [neededSchemaVersion=9] ["start time"=251.802µs] [gotSchemaVersion=9] [phyTblIDs="[18]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.417 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.417 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=19] [version=9] [2024/05/06 09:46:52.426 +00:00] [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"=10.775053ms] [job="ID:19, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:18, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.441 +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:46:52.391 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.450 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=19] [2024/05/06 09:46:52.450 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.450 +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:46:52.454 +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:46:52.452 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.454 +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:46:52.452 +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:46:52.466 +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:46:52.452 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.471 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=9] [neededSchemaVersion=10] ["start time"=329.576µs] [gotSchemaVersion=10] [phyTblIDs="[20]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.472 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.473 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=21] [version=10] [2024/05/06 09:46:52.473 +00:00] [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.141104ms] [job="ID:21, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:20, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.452 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.510 +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:46:52.452 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.519 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=21] [2024/05/06 09:46:52.519 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.520 +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:46:52.527 +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:46:52.523 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.527 +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:46:52.523 +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:46:52.540 +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:46:52.523 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.544 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=10] [neededSchemaVersion=11] ["start time"=313.08µs] [gotSchemaVersion=11] [phyTblIDs="[22]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.545 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.545 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=23] [version=11] [2024/05/06 09:46:52.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=11] ["take time"=2.166007ms] [job="ID:23, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:22, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.523 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.627 +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:46:52.523 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.632 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=23] [2024/05/06 09:46:52.632 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.633 +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:46:52.633 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(6291456) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:52.637 +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:46:52.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.637 +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:46:52.635 +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:46:52.660 +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:46:52.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.668 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=11] [neededSchemaVersion=12] ["start time"=474.447µs] [gotSchemaVersion=12] [phyTblIDs="[24]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.670 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=25] [version=12] [2024/05/06 09:46:52.679 +00:00] [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"=11.378187ms] [job="ID:25, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:24, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.683 +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:46:52.686 +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:46:52.635 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.690 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=25] [2024/05/06 09:46:52.690 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.691 +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:46:52.700 +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:46:52.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.700 +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:46:52.698 +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:46:52.712 +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:46:52.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.716 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=12] [neededSchemaVersion=13] ["start time"=366.862µs] [gotSchemaVersion=13] [phyTblIDs="[26]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.717 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.717 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=27] [version=13] [2024/05/06 09:46:52.718 +00:00] [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.88498ms] [job="ID:27, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:26, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.727 +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:46:52.698 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.732 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=27] [2024/05/06 09:46:52.732 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.733 +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:46:52.747 +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:46:52.735 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.747 +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:46:52.735 +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:46:52.757 +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:46:52.735 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.768 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=13] [neededSchemaVersion=14] ["start time"=356.423µs] [gotSchemaVersion=14] [phyTblIDs="[28]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.769 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.769 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=29] [version=14] [2024/05/06 09:46:52.770 +00:00] [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.616818ms] [job="ID:29, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:28, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.735 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.776 +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:46:52.735 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.780 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=29] [2024/05/06 09:46:52.781 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.781 +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:46:52.791 +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:46:52.79 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.791 +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:46:52.79 +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:46:52.801 +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:46:52.79 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=14] [neededSchemaVersion=15] ["start time"=195.814µs] [gotSchemaVersion=15] [phyTblIDs="[30]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.805 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.805 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=31] [version=15] [2024/05/06 09:46:52.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=15] ["take time"=2.442661ms] [job="ID:31, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:30, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.79 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.824 +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:46:52.79 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.835 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=31] [2024/05/06 09:46:52.835 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.836 +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:46:52.847 +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:46:52.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.847 +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:46:52.838 +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:46:52.855 +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:46:52.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.860 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=15] [neededSchemaVersion=16] ["start time"=305.617µs] [gotSchemaVersion=16] [phyTblIDs="[32]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.861 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.861 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=33] [version=16] [2024/05/06 09:46:52.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=16] ["take time"=5.452927ms] [job="ID:33, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:32, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.873 +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:46:52.838 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.879 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=33] [2024/05/06 09:46:52.879 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.880 +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:46:52.884 +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:46:52.882 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.884 +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:46:52.882 +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:46:52.895 +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:46:52.882 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.904 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=16] [neededSchemaVersion=17] ["start time"=299.162µs] [gotSchemaVersion=17] [phyTblIDs="[34]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.906 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.906 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=35] [version=17] [2024/05/06 09:46:52.925 +00:00] [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"=20.567536ms] [job="ID:35, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:34, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.882 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.934 +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:46:52.882 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.946 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=35] [2024/05/06 09:46:52.946 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:52.946 +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:46:52.961 +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:46:52.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:52.961 +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:46:52.952 +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:46:52.968 +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:46:52.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.972 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=17] [neededSchemaVersion=18] ["start time"=284.231µs] [gotSchemaVersion=18] [phyTblIDs="[36]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:52.974 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:52.974 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=37] [version=18] [2024/05/06 09:46:52.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=18] ["take time"=2.008072ms] [job="ID:37, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:36, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:52.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:52.985 +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:46:52.952 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.001 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=37] [2024/05/06 09:46:53.001 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.002 +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:46:53.006 +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:46:53.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.006 +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:46:53.004 +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:46:53.015 +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:46:53.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.020 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=18] [neededSchemaVersion=19] ["start time"=510.976µs] [gotSchemaVersion=19] [phyTblIDs="[38]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.022 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.022 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=39] [version=19] [2024/05/06 09:46:53.024 +00:00] [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.326701ms] [job="ID:39, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:38, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.034 +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:46:53.004 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.039 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=39] [2024/05/06 09:46:53.039 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.041 +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:46:53.044 +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:46:53.042 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.044 +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:46:53.042 +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:46:53.055 +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:46:53.042 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.058 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=19] [neededSchemaVersion=20] ["start time"=295.157µs] [gotSchemaVersion=20] [phyTblIDs="[40]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.059 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.059 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=41] [version=20] [2024/05/06 09:46:53.060 +00:00] [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.367576ms] [job="ID:41, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:40, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.042 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.090 +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:46:53.042 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.095 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=41] [2024/05/06 09:46:53.095 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.095 +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:46:53.101 +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:46:53.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.102 +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:46:53.098 +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:46:53.167 +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:46:53.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.170 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=20] [neededSchemaVersion=21] ["start time"=229.073µs] [gotSchemaVersion=21] [phyTblIDs="[42]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.171 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.171 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=43] [version=21] [2024/05/06 09:46:53.172 +00:00] [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.415561ms] [job="ID:43, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:42, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.190 +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:46:53.098 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.194 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=43] [2024/05/06 09:46:53.194 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.194 +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:46:53.197 +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:46:53.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.198 +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:46:53.196 +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:46:53.218 +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:46:53.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.221 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=21] [neededSchemaVersion=22] ["start time"=158.431µs] [gotSchemaVersion=22] [phyTblIDs="[44]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.223 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.223 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=45] [version=22] [2024/05/06 09:46:53.235 +00:00] [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"=14.784742ms] [job="ID:45, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:44, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.246 +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:46:53.196 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.257 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=45] [2024/05/06 09:46:53.257 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.258 +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:46:53.262 +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:46:53.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.262 +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:46:53.26 +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:46:53.271 +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:46:53.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.276 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=22] [neededSchemaVersion=23] ["start time"=392.437µs] [gotSchemaVersion=23] [phyTblIDs="[46]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.278 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.278 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=47] [version=23] [2024/05/06 09:46:53.279 +00:00] [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.900359ms] [job="ID:47, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:46, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.296 +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:46:53.26 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.306 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=47] [2024/05/06 09:46:53.306 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.309 +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:46:53.313 +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:46:53.311 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.313 +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:46:53.311 +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:46:53.326 +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:46:53.311 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.355 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=23] [neededSchemaVersion=24] ["start time"=1.154409ms] [gotSchemaVersion=24] [phyTblIDs="[48]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.356 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.356 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=49] [version=24] [2024/05/06 09:46:53.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=24] ["take time"=5.569773ms] [job="ID:49, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:48, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.311 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.366 +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:46:53.311 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.370 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=49] [2024/05/06 09:46:53.370 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.371 +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:46:53.375 +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:46:53.373 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.375 +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:46:53.373 +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:46:53.394 +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:46:53.373 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.411 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=24] [neededSchemaVersion=25] ["start time"=299.256µs] [gotSchemaVersion=25] [phyTblIDs="[50]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.413 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.413 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=51] [version=25] [2024/05/06 09:46:53.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=25] ["take time"=5.06621ms] [job="ID:51, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:50, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.373 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.424 +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:46:53.373 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.430 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=51] [2024/05/06 09:46:53.430 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.431 +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:46:53.436 +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:46:53.434 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.436 +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:46:53.434 +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:46:53.449 +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:46:53.434 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.460 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=25] [neededSchemaVersion=26] ["start time"=245.442µs] [gotSchemaVersion=26] [phyTblIDs="[52]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.479 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.479 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=53] [version=26] [2024/05/06 09:46:53.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=26] ["take time"=21.328397ms] [job="ID:53, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:52, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.434 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.490 +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:46:53.434 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.495 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=53] [2024/05/06 09:46:53.495 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.495 +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:46:53.498 +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:46:53.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.498 +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:46:53.497 +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:46:53.505 +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:46:53.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.508 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=26] [neededSchemaVersion=27] ["start time"=273.895µs] [gotSchemaVersion=27] [phyTblIDs="[54]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.509 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.509 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=55] [version=27] [2024/05/06 09:46:53.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=27] ["take time"=2.069166ms] [job="ID:55, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:54, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.517 +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:46:53.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.524 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=55] [2024/05/06 09:46:53.524 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.524 +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:46:53.529 +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:46:53.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.529 +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:46:53.527 +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:46:53.540 +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:46:53.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.546 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=27] [neededSchemaVersion=28] ["start time"=244.969µs] [gotSchemaVersion=28] [phyTblIDs="[56]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.547 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.547 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=57] [version=28] [2024/05/06 09:46:53.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=28] ["take time"=4.375571ms] [job="ID:57, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:56, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.557 +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:46:53.527 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.567 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=57] [2024/05/06 09:46:53.567 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.567 +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:46:53.567 +00:00] [INFO] [ddl_api.go:1139] ["Automatically convert BLOB(19372) to MEDIUMBLOB"] [category=ddl] [2024/05/06 09:46:53.571 +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:46:53.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.571 +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:46:53.569 +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:46:53.582 +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:46:53.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.586 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=28] [neededSchemaVersion=29] ["start time"=270.767µs] [gotSchemaVersion=29] [phyTblIDs="[58]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.587 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.587 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=59] [version=29] [2024/05/06 09:46:53.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=29] ["take time"=2.017849ms] [job="ID:59, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:58, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.605 +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:46:53.569 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.610 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=59] [2024/05/06 09:46:53.610 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.610 +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:46:53.616 +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:46:53.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.616 +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:46:53.612 +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:46:53.634 +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:46:53.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.638 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=29] [neededSchemaVersion=30] ["start time"=392.809µs] [gotSchemaVersion=30] [phyTblIDs="[60]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.640 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.641 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=61] [version=30] [2024/05/06 09:46:53.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=30] ["take time"=9.004206ms] [job="ID:61, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:60, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.661 +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:46:53.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.667 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=61] [2024/05/06 09:46:53.667 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.667 +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:46:53.678 +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:46:53.669 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.678 +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:46:53.669 +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:46:53.681 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:46:53.701 +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:46:53.669 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.705 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=30] [neededSchemaVersion=31] ["start time"=337.342µs] [gotSchemaVersion=31] [phyTblIDs="[62]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.706 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.706 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=63] [version=31] [2024/05/06 09:46:53.708 +00:00] [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.276736ms] [job="ID:63, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:62, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.669 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.714 +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:46:53.669 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.724 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=63] [2024/05/06 09:46:53.724 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.725 +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:46:53.729 +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:46:53.727 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.729 +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:46:53.727 +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:46:53.736 +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:46:53.727 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.747 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=31] [neededSchemaVersion=32] ["start time"=434.05µs] [gotSchemaVersion=32] [phyTblIDs="[64]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.749 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.749 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=65] [version=32] [2024/05/06 09:46:53.756 +00:00] [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"=8.962232ms] [job="ID:65, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:64, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.727 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.781 +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:46:53.727 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.795 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=65] [2024/05/06 09:46:53.795 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.795 +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:46:53.801 +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:46:53.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.801 +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:46:53.797 +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:46:53.812 +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:46:53.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.816 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=32] [neededSchemaVersion=33] ["start time"=217.931µs] [gotSchemaVersion=33] [phyTblIDs="[66]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.817 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.817 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=67] [version=33] [2024/05/06 09:46:53.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=33] ["take time"=2.669984ms] [job="ID:67, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:66, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.827 +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:46:53.797 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.833 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=67] [2024/05/06 09:46:53.833 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.847 +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:46:53.844 +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:46:53.847 +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:46:53.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.860 +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:46:53.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.867 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=33] [neededSchemaVersion=34] ["start time"=301.887µs] [gotSchemaVersion=34] [phyTblIDs="[68]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:46:53.868 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.868 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=69] [version=34] [2024/05/06 09:46:53.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=34] ["take time"=8.059479ms] [job="ID:69, Type:create view, State:done, SchemaState:public, SchemaID:1, TableID:68, RowCount:0, ArgLen:3, start time: 2024-05-06 09:46:53.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.881 +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:46:53.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.885 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=69] [2024/05/06 09:46:53.885 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.885 +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:46:53.888 +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:46:53.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.889 +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:46:53.887 +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:46:53.894 +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:46:53.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.898 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=34] [neededSchemaVersion=35] ["start time"=330.587µs] [gotSchemaVersion=35] [phyTblIDs="[70]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.899 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.899 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=71] [version=35] [2024/05/06 09:46:53.904 +00:00] [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"=6.506399ms] [job="ID:71, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:70, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.915 +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:46:53.887 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.921 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=71] [2024/05/06 09:46:53.921 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.921 +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:46:53.927 +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:46:53.925 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.927 +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:46:53.925 +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:46:53.935 +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:46:53.925 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.945 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=35] [neededSchemaVersion=36] ["start time"=256.034µs] [gotSchemaVersion=36] [phyTblIDs="[72]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.947 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.947 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=73] [version=36] [2024/05/06 09:46:53.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=36] ["take time"=6.51409ms] [job="ID:73, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:72, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.925 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.959 +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:46:53.925 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.963 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=73] [2024/05/06 09:46:53.963 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:53.964 +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:46:53.971 +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:46:53.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:53.971 +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:46:53.968 +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:46:53.981 +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:46:53.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:53.986 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=36] [neededSchemaVersion=37] ["start time"=236.05µs] [gotSchemaVersion=37] [phyTblIDs="[74]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:53.988 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:53.988 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=75] [version=37] [2024/05/06 09:46:53.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=37] ["take time"=4.685955ms] [job="ID:75, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:74, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:53.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.003 +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:46:53.968 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.010 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=75] [2024/05/06 09:46:54.010 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.010 +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:46:54.015 +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:46:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.015 +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:46:54.013 +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:46:54.052 +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:46:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.059 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=37] [neededSchemaVersion=38] ["start time"=721.904µs] [gotSchemaVersion=38] [phyTblIDs="[76]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.063 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.063 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=77] [version=38] [2024/05/06 09:46:54.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=38] ["take time"=9.722898ms] [job="ID:77, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:76, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.080 +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:46:54.013 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.087 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=77] [2024/05/06 09:46:54.087 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.088 +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:46:54.092 +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:46:54.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.092 +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:46:54.09 +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:46:54.110 +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:46:54.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.118 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=38] [neededSchemaVersion=39] ["start time"=444.283µs] [gotSchemaVersion=39] [phyTblIDs="[78]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.120 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.120 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=79] [version=39] [2024/05/06 09:46:54.123 +00:00] [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"=5.498522ms] [job="ID:79, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:78, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.133 +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:46:54.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.137 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=79] [2024/05/06 09:46:54.137 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.138 +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:46:54.141 +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:46:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.141 +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:46:54.139 +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:46:54.156 +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:46:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.161 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=39] [neededSchemaVersion=40] ["start time"=603.684µs] [gotSchemaVersion=40] [phyTblIDs="[80]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.162 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.162 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=81] [version=40] [2024/05/06 09:46:54.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=40] ["take time"=4.118243ms] [job="ID:81, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:80, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.173 +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:46:54.139 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.179 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=81] [2024/05/06 09:46:54.179 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.180 +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:46:54.189 +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:46:54.183 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.189 +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:46:54.183 +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:46:54.197 +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:46:54.183 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.204 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=40] [neededSchemaVersion=41] ["start time"=523.821µs] [gotSchemaVersion=41] [phyTblIDs="[82]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.205 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.205 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=83] [version=41] [2024/05/06 09:46:54.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=41] ["take time"=12.39948ms] [job="ID:83, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:82, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.183 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.223 +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:46:54.183 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.234 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=83] [2024/05/06 09:46:54.234 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.235 +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:46:54.246 +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:46:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.246 +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:46:54.242 +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:46:54.258 +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:46:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.263 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=41] [neededSchemaVersion=42] ["start time"=490.047µs] [gotSchemaVersion=42] [phyTblIDs="[84]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.264 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.265 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=85] [version=42] [2024/05/06 09:46:54.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=42] ["take time"=8.322728ms] [job="ID:85, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:84, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.289 +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:46:54.242 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.294 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=85] [2024/05/06 09:46:54.294 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.295 +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:46:54.303 +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:46:54.301 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.303 +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:46:54.301 +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:46:54.319 +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:46:54.301 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.324 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=42] [neededSchemaVersion=43] ["start time"=505.242µs] [gotSchemaVersion=43] [phyTblIDs="[86]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.326 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.326 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=87] [version=43] [2024/05/06 09:46:54.329 +00:00] [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.519025ms] [job="ID:87, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:86, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.301 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.343 +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:46:54.301 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.348 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=87] [2024/05/06 09:46:54.348 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.349 +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:46:54.354 +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:46:54.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.354 +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:46:54.352 +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:46:54.372 +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:46:54.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.413 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=43] [neededSchemaVersion=44] ["start time"=369.625µs] [gotSchemaVersion=44] [phyTblIDs="[88]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.415 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.415 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=89] [version=44] [2024/05/06 09:46:54.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=44] ["take time"=4.042697ms] [job="ID:89, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:88, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.433 +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:46:54.352 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.437 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=89] [2024/05/06 09:46:54.438 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.438 +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:46:54.448 +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:46:54.446 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.448 +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:46:54.446 +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:46:54.458 +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:46:54.446 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.461 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=44] [neededSchemaVersion=45] ["start time"=367.068µs] [gotSchemaVersion=45] [phyTblIDs="[90]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.463 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.463 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=91] [version=45] [2024/05/06 09:46:54.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=45] ["take time"=22.381804ms] [job="ID:91, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:90, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.446 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.495 +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:46:54.446 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.499 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=91] [2024/05/06 09:46:54.499 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.499 +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:46:54.503 +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:46:54.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.513 +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:46:54.501 +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:46:54.558 +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:46:54.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.567 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=45] [neededSchemaVersion=46] ["start time"=581.842µs] [gotSchemaVersion=46] [phyTblIDs="[92]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.568 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.568 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=93] [version=46] [2024/05/06 09:46:54.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=46] ["take time"=2.04966ms] [job="ID:93, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:92, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.574 +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:46:54.501 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.581 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=93] [2024/05/06 09:46:54.581 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.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:46:54.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:46:54.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.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:46:54.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:46:54.598 +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:46:54.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.603 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=46] [neededSchemaVersion=47] ["start time"=359.493µs] [gotSchemaVersion=47] [phyTblIDs="[94]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.604 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.604 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=95] [version=47] [2024/05/06 09:46:54.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=47] ["take time"=2.012633ms] [job="ID:95, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:94, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.617 +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:46:54.583 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.623 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=95] [2024/05/06 09:46:54.623 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.624 +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:46:54.628 +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:46:54.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.628 +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:46:54.626 +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:46:54.636 +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:46:54.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.649 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=47] [neededSchemaVersion=48] ["start time"=303.807µs] [gotSchemaVersion=48] [phyTblIDs="[96]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.650 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.650 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=97] [version=48] [2024/05/06 09:46:54.650 +00:00] [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.022021ms] [job="ID:97, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:96, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.658 +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:46:54.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.677 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=97] [2024/05/06 09:46:54.677 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.678 +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:46:54.682 +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:46:54.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.682 +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:46:54.681 +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:46:54.688 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:46:54.688 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:46:54.688 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:46:54.688 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:46:54.690 +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:46:54.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=48] [neededSchemaVersion=49] ["start time"=304.817µs] [gotSchemaVersion=49] [phyTblIDs="[98]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:54.695 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.695 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=99] [version=49] [2024/05/06 09:46:54.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=49] ["take time"=2.055542ms] [job="ID:99, Type:create table, State:done, SchemaState:public, SchemaID:1, TableID:98, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:54.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.708 +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:46:54.681 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.715 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=99] [2024/05/06 09:46:54.715 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.716 +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:46:54.718 +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:46:54.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.718 +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:46:54.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="CREATE DATABASE IF NOT EXISTS sys;"] [2024/05/06 09:46:54.744 +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:46:54.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.748 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=49] [neededSchemaVersion=50] ["start time"=72.321µs] [gotSchemaVersion=50] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:46:54.749 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.749 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=101] [version=50] [2024/05/06 09:46:54.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=50] ["take time"=2.995774ms] [job="ID:101, Type:create schema, State:done, SchemaState:public, SchemaID:100, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:46:54.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.774 +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:46:54.717 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.778 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=101] [2024/05/06 09:46:54.778 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.784 +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:46:54.782 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:54.784 +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:46:54.782 +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:46:54.791 +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:46:54.782 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.794 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=50] [neededSchemaVersion=51] ["start time"=222.994µs] [gotSchemaVersion=51] [phyTblIDs="[102]"] [actionTypes="[21]"] [diffTypes="[\"create view\"]"] [2024/05/06 09:46:54.796 +00:00] [INFO] [domain.go:868] ["session manager is nil"] [2024/05/06 09:46:54.796 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=103] [version=51] [2024/05/06 09:46:54.796 +00:00] [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.092895ms] [job="ID:103, Type:create view, State:done, SchemaState:public, SchemaID:100, TableID:102, RowCount:0, ArgLen:3, start time: 2024-05-06 09:46:54.782 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.801 +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:46:54.782 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:54.807 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=103] [2024/05/06 09:46:54.807 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:54.896 +00:00] [INFO] [bootstrap.go:745] ["bootstrap successful"] ["take time"=3.220067648s] [2024/05/06 09:46:54.897 +00:00] [INFO] [mock.go:106] ["owner manager is canceled"] [category=ddl] [ID=751b92d4-4297-4a09-baa3-2bcdb38dc08a] [ownerKey=/tidb/ddl/fg/owner] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 3, tp add index"] [category=ddl] ["take time"=1.79µs] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 4, tp add index"] [category=ddl] ["take time"=991ns] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 5, tp add index"] [category=ddl] ["take time"=1.384µs] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 2, tp add index"] [category=ddl] ["take time"=1.055µs] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_worker.go:186] ["DDL worker closed"] [worker="worker 1, tp general"] [category=ddl] ["take time"=753ns] [2024/05/06 09:46:54.897 +00:00] [INFO] [ddl_workerpool.go:82] ["closing workerPool"] [category=ddl] [2024/05/06 09:46:54.897 +00:00] [INFO] [delete_range.go:162] ["closing delRange"] [category=ddl] [2024/05/06 09:46:54.897 +00:00] [INFO] [session_pool.go:99] ["closing session pool"] [category=ddl] [2024/05/06 09:46:54.900 +00:00] [INFO] [ddl.go:951] ["DDL closed"] [category=ddl] [ID=751b92d4-4297-4a09-baa3-2bcdb38dc08a] ["take time"=3.058019ms] [2024/05/06 09:46:54.900 +00:00] [INFO] [ddl.go:769] ["stop DDL"] [category=ddl] [ID=751b92d4-4297-4a09-baa3-2bcdb38dc08a] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:907] ["loadSchemaInLoop exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:711] ["infoSyncerKeeper exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:737] ["globalConfigSyncerKeeper exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:761] ["topologySyncerKeeper exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:683] ["topNSlowQueryLoop exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:1361] ["closestReplicaReadCheckLoop exited."] [2024/05/06 09:46:54.900 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:46:54.900 +00:00] [INFO] [domain.go:1074] ["domain closed"] ["take time"=3.561608ms] [2024/05/06 09:46:54.900 +00:00] [INFO] [tidb.go:80] ["new domain"] [store=d255cb94-099f-4d12-a178-fd6610e1619d] ["ddl lease"=100ms] ["stats lease"=-1ns] [2024/05/06 09:46:54.909 +00:00] [WARN] [controller.go:198] ["[resource group controller] server does not save config, load config failed"] [2024/05/06 09:46:54.910 +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:46:54.924 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=51] ["start time"=14.052248ms] [2024/05/06 09:46:54.924 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:46:54.924 +00:00] [INFO] [ddl.go:818] ["start DDL"] [category=ddl] [ID=0bd480ac-c515-4ce5-bfbf-90c9452db370] [runWorker=true] [2024/05/06 09:46:54.925 +00:00] [INFO] [ddl.go:777] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true] [2024/05/06 09:46:54.925 +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:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSchemaInLoop] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=mdlCheckLoop] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topNSlowQueryLoop] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=infoSyncerKeeper] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=topologySyncerKeeper] [2024/05/06 09:46:54.925 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop] [2024/05/06 09:46:54.925 +00:00] [WARN] [domain.go:1326] ["pd / etcd client not provided, won't begin Advancer."] [2024/05/06 09:46:54.927 +00:00] [INFO] [delete_range.go:172] ["start delRange emulator"] [category=ddl] [2024/05/06 09:46:54.927 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:46:54.928 +00:00] [INFO] [runaway.go:149] ["try to start runaway manager loop"] [2024/05/06 09:46:54.928 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=requestUnitsWriterLoop] [2024/05/06 09:46:54.928 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=globalBindHandleWorkerLoop] [2024/05/06 09:46:54.928 +00:00] [WARN] [sysvar_cache.go:49] ["sysvar cache is empty, triggering rebuild"] [2024/05/06 09:46:54.931 +00:00] [INFO] [sysvar.go:2748] ["set resource control"] [enable=true] [2024/05/06 09:46:54.932 +00:00] [INFO] [controller.go:447] ["[resource group controller] create resource group cost controller"] [name=default] [2024/05/06 09:46:54.982 +00:00] [INFO] [job_table.go:334] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false] [2024/05/06 09:46:54.982 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none] [2024/05/06 09:46:54.986 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadPrivilegeInLoop] [2024/05/06 09:46:54.990 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=LoadSysVarCacheLoop] [2024/05/06 09:46:54.993 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=dumpFileGcChecker] [2024/05/06 09:46:54.994 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=indexUsageWorker] [2024/05/06 09:46:54.994 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=quitStatsOwner] [2024/05/06 09:46:54.995 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=loadSigningCertLoop] [2024/05/06 09:46:54.995 +00:00] [INFO] [manager.go:113] ["build task executor manager"] [server-id=:4000] [total-cpu=16] [total-mem=342.3GiB] [2024/05/06 09:46:54.996 +00:00] [INFO] [domain.go:2070] ["dumpFileGcChecker started"] [2024/05/06 09:46:54.997 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=distTaskFrameworkLoop] [2024/05/06 09:46:54.997 +00:00] [INFO] [manager.go:146] ["task executor manager start"] [server-id=:4000] [2024/05/06 09:46:54.997 +00:00] [INFO] [domain.go:1525] ["dist task executor manager started"] [2024/05/06 09:46:54.998 +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:46:54.998 +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:46:55.024 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:46:55.028 +00:00] [INFO] [set.go:170] ["set global var"] [conn=2] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:46:55.029 +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:46:55.030 +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:46:55.050 +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:46:55.036 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:55.050 +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:46:55.036 +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:46:55.078 +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:46:55.036 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.129 +00:00] [INFO] [domain.go:315] ["full load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=51] ["start time"=99.446502ms] [2024/05/06 09:46:55.135 +00:00] [INFO] [domain.go:635] ["full load and reset schema validator"] [2024/05/06 09:46:55.135 +00:00] [WARN] [domain.go:647] ["loading schema takes a long time"] ["take time"=105.066704ms] [2024/05/06 09:46:55.137 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449574027941117953] ["min commit ts"=449574027955011586] [key=bURCOjIAAAAA+wAAAAAAAABoVGFibGU6MTD/NAAAAAAAAAD4] [2024/05/06 09:46:55.137 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449574027939807233] [info="{StartTs:449574027939807233 AttemptedCommitTs:449574027941117953 Key:6d44423a3200000000fb00000000000000685461626c653a3130ff3400000000000000f8 MinCommitTs:449574027955011586}"] [2024/05/06 09:46:55.146 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=51] [neededSchemaVersion=52] ["start time"=7.850327ms] [gotSchemaVersion=52] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[3,3,3,3,3,3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:55.148 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=110] [version=52] [2024/05/06 09:46:55.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=52] ["take time"=10.808253ms] [job="ID:110, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:55.036 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.153 +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:46:55.036 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.159 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=110] [2024/05/06 09:46:55.160 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:55.162 +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:46:55.166 +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:46:55.164 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:46:55.166 +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:46:55.164 +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:46:55.174 +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:46:55.164 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.177 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=52] [neededSchemaVersion=53] ["start time"=267.219µs] [gotSchemaVersion=53] [phyTblIDs="[111]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:46:55.179 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=112] [version=53] [2024/05/06 09:46:55.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=53] ["take time"=5.923818ms] [job="ID:112, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:46:55.164 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.200 +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:46:55.164 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:46:55.216 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=112] [2024/05/06 09:46:55.216 +00:00] [INFO] [callback.go:140] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:46:55.935 +00:00] [INFO] [runaway.go:158] ["preparations for the runaway manager are finished and start runaway manager loop"] [2024/05/06 09:46:55.935 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayRecordFlushLoop] [2024/05/06 09:46:55.935 +00:00] [INFO] [wait_group_wrapper.go:133] ["background process started"] [source=domain] [process=runawayWatchSyncLoop] [2024/05/06 09:46:55.935 +00:00] [INFO] [wait_group_wrapper.go:140] ["background process exited"] [source=domain] [process=runawayStartLoop] [2024/05/06 09:46:56.015 +00:00] [INFO] [slots.go:205] ["initialize slot capacity"] [capacity=16] [2024/05/06 09:46:56.016 +00:00] [INFO] [runtime.go:160] ["TimerGroupRuntime loop started"] [groupID=ttl] [2024/05/06 09:46:56.016 +00:00] [INFO] [runtime.go:402] ["create watch chan if possible for timer runtime"] [groupID=ttl] [storeSupportWatch=true] [2024/05/06 09:46:56.026 +00:00] [INFO] [scheduler_manager.go:373] ["cleanup loop start"] [server-id=:4000] [2024/05/06 09:46:56.026 +00:00] [INFO] [scheduler_manager.go:312] ["subtask table gc loop start"] [server-id=:4000] [2024/05/06 09:46:56.026 +00:00] [INFO] [scheduler_manager.go:453] ["collect loop start"] [server-id=:4000] [2024/05/06 09:46:56.026 +00:00] [INFO] [scheduler_manager.go:200] ["schedule task loop start"] [server-id=:4000] [2024/05/06 09:46:56.935 +00:00] [INFO] [info.go:1142] [SetTiFlashGroupConfig] [2024/05/06 09:46:59.063 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_ddl_reorg_batch_size] [val=8] [2024/05/06 09:46:59.069 +00:00] [INFO] [set.go:170] ["set global var"] [conn=1] [name=tidb_ddl_reorg_worker_cnt] [val=1] [2024/05/06 09:46:59.074 +00:00] [INFO] [set.go:170] ["set global var"] [conn=3] [name=tidb_schema_cache_size] [val=1024] [2024/05/06 09:46:59.075 +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:46:59.082 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:46:59.082 +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:46:59.076 +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:46:59.089 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.089 +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:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.090 +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:46:59.076 +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:46:59.090 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:46:59.093 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.104 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=53] [neededSchemaVersion=54] ["start time"=8.646237ms] [gotSchemaVersion=54] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.105 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=54] [2024/05/06 09:46:59.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=54] ["take time"=17.804719ms] [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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.114 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.121 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.121 +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:running, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.122 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.133 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=54] [neededSchemaVersion=55] ["start time"=7.826701ms] [gotSchemaVersion=55] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.135 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=55] [2024/05/06 09:46:59.163 +00:00] [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"=38.066072ms] [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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.178 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.185 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.185 +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:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.188 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.200 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=55] [neededSchemaVersion=56] ["start time"=8.533957ms] [gotSchemaVersion=56] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.205 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=56] [2024/05/06 09:46:59.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=56] ["take time"=16.603955ms] [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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.208 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.214 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.217 +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:running, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.217 +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:46:59.222 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=113] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:46:59.225 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029024821248, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.226 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029024034816, conflictStartTS=449574029024034817, conflictCommitTS=449574029024559104, 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:46:59.226 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029024034816, conflictStartTS=449574029024034817, conflictCommitTS=449574029024559104, 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:46:59.226 +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=449574029024034816, conflictStartTS=449574029024034817, conflictCommitTS=449574029024559104, 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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029024821248, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.235 +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:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.235 +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:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.240 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:46:59.076 +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:46:59.240 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.253 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=56] [neededSchemaVersion=57] ["start time"=8.858188ms] [gotSchemaVersion=57] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.254 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=57] [2024/05/06 09:46:59.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=57] ["take time"=14.511636ms] [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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.259 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.274 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.274 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.275 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.284 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=57] [neededSchemaVersion=58] ["start time"=7.582132ms] [gotSchemaVersion=58] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.286 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=58] [2024/05/06 09:46:59.287 +00:00] [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"=10.086479ms] [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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.297 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.307 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.307 +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:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.308 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.348 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=58] [neededSchemaVersion=59] ["start time"=37.134256ms] [gotSchemaVersion=59] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=113] [version=59] [2024/05/06 09:46:59.350 +00:00] [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"=40.051083ms] [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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.351 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.369 +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:46:59.370 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=113] [jobType="add index"] [2024/05/06 09:46:59.371 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.376 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=113] [2024/05/06 09:46:59.376 +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:46:59.076 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.381 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=113] [2024/05/06 09:46:59.381 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:46:59.381 +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:46:59.382 +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:46:59.389 +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:46:59.392 +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:46:59.396 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:46:59.396 +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:46:59.383 +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:46:59.405 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.405 +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:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.405 +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:46:59.383 +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:46:59.405 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:46:59.406 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.417 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=59] [neededSchemaVersion=60] ["start time"=8.398859ms] [gotSchemaVersion=60] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.419 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=60] [2024/05/06 09:46:59.436 +00:00] [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"=27.73499ms] [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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.450 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.456 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.456 +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:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.457 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.468 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=60] [neededSchemaVersion=61] ["start time"=8.649221ms] [gotSchemaVersion=61] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.469 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=61] [2024/05/06 09:46:59.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=61] ["take time"=29.104002ms] [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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.499 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.505 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.505 +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 only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.506 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.517 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=61] [neededSchemaVersion=62] ["start time"=8.557563ms] [gotSchemaVersion=62] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.518 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=62] [2024/05/06 09:46:59.520 +00:00] [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"=12.100247ms] [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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.528 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.536 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.536 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.537 +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:46:59.537 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=114] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:46:59.540 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.541 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.541 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.556 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.556 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.557 +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:46:59.558 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:7480000000000000695f728000000000000001,EndKey:7480000000000000695f72800000000000015600,First:false,PhysicalTableID:105,Ingest mode:false"] [2024/05/06 09:46:59.559 +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:46:59.559 +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:46:59.560 +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:46:59.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:46:59.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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.569 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.570 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.576 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.576 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.577 +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:46:59.594 +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:46:59.594 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.595 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.596 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.636 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.637 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.638 +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:46:59.659 +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:46:59.659 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.660 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.661 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.674 +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"=13.772937ms] [2024/05/06 09:46:59.674 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=114] [2024/05/06 09:46:59.674 +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:46:59.681 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.682 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.683 +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:46:59.683 +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:46:59.683 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:2,StartKey:74800000000000006a5f728000000000000157,EndKey:74800000000000006a5f7280000000000002ab00,First:false,PhysicalTableID:106,Ingest mode:false"] [2024/05/06 09:46:59.684 +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:46:59.684 +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:46:59.685 +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:46:59.781 +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:46:59.781 +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:342, ArgLen:6, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.783 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.783 +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:342, ArgLen:6, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.792 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.792 +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:342, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.792 +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:342, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.792 +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:46:59.792 +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:46:59.793 +00:00] [WARN] [backfilling.go:641] ["backfill worker failed"] [category=ddl] ["job ID"=114] ["total added count"=342] ["start key"=74800000000000006a5f728000000000000157] ["result next key"=74800000000000006a5f72800000000000025600] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:46:59.793 +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:46:59.794 +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:46:59.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:46:59.800 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, 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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, 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:46:59.800 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.818 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=62] [neededSchemaVersion=63] ["start time"=15.481598ms] [gotSchemaVersion=63] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.819 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=63] [2024/05/06 09:46:59.822 +00:00] [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"=19.922065ms] [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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.823 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.829 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.829 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.830 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.842 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=63] [neededSchemaVersion=64] ["start time"=8.016835ms] [gotSchemaVersion=64] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.844 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=64] [2024/05/06 09:46:59.853 +00:00] [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"=18.98787ms] [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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.854 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.861 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.861 +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:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.862 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.871 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=64] [neededSchemaVersion=65] ["start time"=7.274605ms] [gotSchemaVersion=65] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[7,7,7,7,7,7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:46:59.873 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=114] [version=65] [2024/05/06 09:46:59.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=65] ["take time"=10.595997ms] [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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.879 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.888 +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:46:59.892 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=114] [jobType="add index"] [2024/05/06 09:46:59.893 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.903 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.904 +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:46:59.904 +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:46:59.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029108707328, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.905 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=114] [2024/05/06 09:46:59.905 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:46:59.905 +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:46:59.905 +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:46:59.909 +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:46:59.910 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:46:59.910 +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:46:59.906 +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:46:59.923 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.923 +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:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.924 +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:46:59.906 +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:46:59.924 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:46:59.925 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.943 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=65] [neededSchemaVersion=66] ["start time"=12.5665ms] [gotSchemaVersion=66] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:46:59.944 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=66] [2024/05/06 09:46:59.944 +00:00] [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"=14.27995ms] [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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.946 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.952 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.952 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.956 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.974 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=66] [neededSchemaVersion=67] ["start time"=16.493502ms] [gotSchemaVersion=67] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:46:59.978 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=67] [2024/05/06 09:46:59.981 +00:00] [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"=23.14567ms] [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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.983 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.994 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.994 +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:running, SchemaState:write only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:46:59.998 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.008 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=67] [neededSchemaVersion=68] ["start time"=7.759351ms] [gotSchemaVersion=68] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.009 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=68] [2024/05/06 09:47:00.010 +00:00] [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"=10.064981ms] [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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.011 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.020 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.023 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.023 +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:47:00.024 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=115] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:47:00.026 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029236371456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.027 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029235322880, conflictStartTS=449574029235585024, conflictCommitTS=449574029235847168, 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:47:00.027 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029235322880, conflictStartTS=449574029235585024, conflictCommitTS=449574029235847168, 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:47:00.027 +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=449574029235322880, conflictStartTS=449574029235585024, conflictCommitTS=449574029235847168, 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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029236371456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.036 +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:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.036 +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:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.906 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.040 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, 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:46:59.906 +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:47:00.040 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.052 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=68] [neededSchemaVersion=69] ["start time"=7.833867ms] [gotSchemaVersion=69] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.054 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=69] [2024/05/06 09:47:00.054 +00:00] [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"=9.925369ms] [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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.055 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.064 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.065 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.066 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.076 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=69] [neededSchemaVersion=70] ["start time"=7.972538ms] [gotSchemaVersion=70] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.077 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=70] [2024/05/06 09:47:00.081 +00:00] [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"=13.456759ms] [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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.082 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.113 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.113 +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 reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.115 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.127 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=70] [neededSchemaVersion=71] ["start time"=9.303867ms] [gotSchemaVersion=71] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.129 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=115] [version=71] [2024/05/06 09:47:00.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=71] ["take time"=14.542652ms] [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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.133 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.147 +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:47:00.148 +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:47:00.148 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.153 +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:47:00.154 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=115] [2024/05/06 09:47:00.155 +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:46:59.906 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.158 +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:47:00.159 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=115] [2024/05/06 09:47:00.159 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:00.160 +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:47:00.160 +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:47:00.164 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:00.164 +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:47:00.162 +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:47:00.192 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.192 +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:queueing, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.192 +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:47:00.162 +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:47:00.193 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:00.194 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.205 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=71] [neededSchemaVersion=72] ["start time"=9.484197ms] [gotSchemaVersion=72] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.207 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=72] [2024/05/06 09:47:00.208 +00:00] [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"=12.065361ms] [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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.209 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.217 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.217 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.220 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.230 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=72] [neededSchemaVersion=73] ["start time"=8.616485ms] [gotSchemaVersion=73] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.250 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=73] [2024/05/06 09:47:00.252 +00:00] [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"=30.390737ms] [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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.253 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.260 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.260 +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 only, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.263 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.273 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=73] [neededSchemaVersion=74] ["start time"=8.101471ms] [gotSchemaVersion=74] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.274 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=74] [2024/05/06 09:47:00.275 +00:00] [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"=10.440644ms] [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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.276 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.283 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.283 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.284 +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:47:00.284 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=116] [physicalTableID=105] [startKey=7480000000000000695f728000000000000001] [endKey=7480000000000000695f72800000000000015600] [2024/05/06 09:47:00.289 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.290 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.290 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.303 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.303 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.304 +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:47:00.307 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:4,StartKey:7480000000000000695f728000000000000001,EndKey:7480000000000000695f72800000000000015600,First:false,PhysicalTableID:105,Ingest mode:false"] [2024/05/06 09:47:00.309 +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:47:00.309 +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:47:00.309 +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:47:00.321 +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:47:00.321 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.322 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.322 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.333 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.337 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.338 +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:47:00.351 +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:47:00.351 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.352 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.352 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.360 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.360 +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 reorganization, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.361 +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:47:00.388 +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:47:00.389 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.389 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.390 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.397 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.397 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.398 +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:47:00.414 +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:47:00.414 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.415 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.415 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.426 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.426 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.427 +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:47:00.432 +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"=18.571906ms] [2024/05/06 09:47:00.433 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=116] [2024/05/06 09:47:00.433 +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:47:00.436 +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:47:00.436 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:4,StartKey:74800000000000006a5f728000000000000157,EndKey:74800000000000006a5f7280000000000002ab00,First:false,PhysicalTableID:106,Ingest mode:false"] [2024/05/06 09:47:00.436 +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:47:00.436 +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:47:00.437 +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:47:00.559 +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:47:00.559 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.561 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.562 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.583 +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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.583 +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:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.583 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 9, 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:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.583 +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:47:00.583 +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:47:00.584 +00:00] [WARN] [backfilling.go:641] ["backfill worker failed"] [category=ddl] ["job ID"=116] ["total added count"=342] ["start key"=74800000000000006a5f728000000000000157] ["result next key"=74800000000000006a5f7280000000000001d600] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:00.584 +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:47:00.586 +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:342, ArgLen:7, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:00.592 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, 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:342, ArgLen:3, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, 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:47:00.592 +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:342, ArgLen:3, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.602 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=74] [neededSchemaVersion=75] ["start time"=8.043614ms] [gotSchemaVersion=75] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.616 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=75] [2024/05/06 09:47:00.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=75] ["take time"=35.166492ms] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:3, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.630 +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:342, ArgLen:3, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.638 +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:342, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.638 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:104, RowCount:342, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.639 +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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.659 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=75] [neededSchemaVersion=76] ["start time"=17.443262ms] [gotSchemaVersion=76] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.664 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=76] [2024/05/06 09:47:00.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=76] ["take time"=26.507481ms] [job="ID:116, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.669 +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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.676 +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:342, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.676 +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:342, ArgLen:0, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.680 +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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.697 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=76] [neededSchemaVersion=77] ["start time"=12.595859ms] [gotSchemaVersion=77] [phyTblIDs="[104,105,106,107,108,109]"] [actionTypes="[32,32,32,32,32,32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=116] [version=77] [2024/05/06 09:47:00.702 +00:00] [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"=18.586498ms] [job="ID:116, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:104, RowCount:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.711 +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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.718 +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:47:00.719 +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:47:00.720 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.722 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.723 +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:342, ArgLen:2, start time: 2024-05-06 09:47:00.162 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029304528896, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.724 +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:47:00.725 +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:47:00.728 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=116] [2024/05/06 09:47:00.728 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:00.728 +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:47:00.729 +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:47:00.734 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:00.735 +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:47:00.73 +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:47:00.745 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.747 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.748 +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:47:00.73 +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:47:00.748 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:00.748 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.749 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029425377280, conflictStartTS=449574029425639424, conflictCommitTS=449574029425901568, 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:47:00.750 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029425377280, conflictStartTS=449574029425639424, conflictCommitTS=449574029425901568, 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:47:00.750 +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=449574029425377280, conflictStartTS=449574029425639424, conflictCommitTS=449574029425901568, 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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.753 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.753 +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:47:00.73 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.753 +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:47:00.73 +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:47:00.753 +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:47:00.73 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.754 +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:47:00.73 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.756 +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:47:00.73 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.757 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=117] [2024/05/06 09:47:00.757 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:00.757 +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:47:00.757 +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:47:00.760 +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:47:00.759 +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:47:00.761 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:00.768 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.768 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.769 +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:47:00.759 +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:47:00.769 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:00.769 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.773 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=77] [neededSchemaVersion=79] ["start time"=366.207µs] [gotSchemaVersion=79] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.774 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=79] [2024/05/06 09:47:00.774 +00:00] [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.026705ms] [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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.776 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.786 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.788 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, 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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.794 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.796 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029436125184, conflictStartTS=449574029436125185, conflictCommitTS=449574029436387328, 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:47:00.796 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029436125184, conflictStartTS=449574029436125185, conflictCommitTS=449574029436387328, 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:47:00.796 +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=449574029436125184, conflictStartTS=449574029436125185, conflictCommitTS=449574029436387328, 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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.803 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.803 +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:47:00.759 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.804 +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:47:00.759 +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:47:00.804 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.805 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:47:00.805 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.813 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.813 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.814 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.816 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=79] [neededSchemaVersion=81] ["start time"=498.265µs] [gotSchemaVersion=81] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.817 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=81] [2024/05/06 09:47:00.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=81] ["take time"=12.387481ms] [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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.830 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.835 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.835 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, 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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.838 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.840 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=81] [neededSchemaVersion=82] ["start time"=311.139µs] [gotSchemaVersion=82] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.842 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=118] [version=82] [2024/05/06 09:47:00.845 +00:00] [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"=4.936418ms] [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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.846 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.852 +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:47:00.853 +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:47:00.854 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.856 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=118] [2024/05/06 09:47:00.856 +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:47:00.759 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.859 +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:47:00.862 +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:47:00.862 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=118] [2024/05/06 09:47:00.863 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:00.863 +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:47:00.863 +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:47:00.866 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:00.866 +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:47:00.865 +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:47:00.875 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.875 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.876 +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:47:00.865 +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:47:00.876 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:00.876 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.881 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=82] [neededSchemaVersion=83] ["start time"=418.374µs] [gotSchemaVersion=83] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.882 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=83] [2024/05/06 09:47:00.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=83] ["take time"=2.362937ms] [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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.885 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.902 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.902 +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:47:00.865 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.902 +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:47:00.865 +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:47:00.903 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.904 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=119] [2024/05/06 09:47:00.904 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.915 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.915 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.918 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.920 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=83] [neededSchemaVersion=84] ["start time"=328.775µs] [gotSchemaVersion=84] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.921 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=84] [2024/05/06 09:47:00.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=84] ["take time"=2.802132ms] [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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.923 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.930 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.930 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.935 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.938 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=84] [neededSchemaVersion=85] ["start time"=312.176µs] [gotSchemaVersion=85] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.939 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=119] [version=85] [2024/05/06 09:47:00.941 +00:00] [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"=3.355656ms] [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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.942 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.949 +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:47:00.950 +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:47:00.951 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.953 +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:47:00.954 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=119] [2024/05/06 09:47:00.955 +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:47:00.865 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.955 +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:47:00.962 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=119] [2024/05/06 09:47:00.962 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:00.962 +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:47:00.963 +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:47:00.966 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:00.966 +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:47:00.964 +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:47:00.988 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.988 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.988 +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:47:00.964 +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:47:00.988 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:00.990 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.992 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=85] [neededSchemaVersion=86] ["start time"=339.215µs] [gotSchemaVersion=86] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:00.994 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=86] [2024/05/06 09:47:00.996 +00:00] [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"=3.967063ms] [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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:00.997 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.008 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.008 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.021 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.023 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=86] [neededSchemaVersion=87] ["start time"=338.413µs] [gotSchemaVersion=87] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.025 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=87] [2024/05/06 09:47:01.025 +00:00] [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"=2.041167ms] [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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.026 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.033 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.035 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.041 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.043 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029500874753, conflictStartTS=449574029501136896, conflictCommitTS=449574029501399040, 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:47:01.043 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029500874753, conflictStartTS=449574029501136896, conflictCommitTS=449574029501399040, 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:47:01.043 +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=449574029500874753, conflictStartTS=449574029501136896, conflictCommitTS=449574029501399040, 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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.053 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.053 +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:47:00.964 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.058 +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:47:00.964 +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:47:01.058 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.061 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=87] [neededSchemaVersion=89] ["start time"=360.416µs] [gotSchemaVersion=89] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.062 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=89] [2024/05/06 09:47:01.063 +00:00] [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.877249ms] [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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.064 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.071 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.071 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.072 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.074 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=89] [neededSchemaVersion=90] ["start time"=360.96µs] [gotSchemaVersion=90] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.076 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=90] [2024/05/06 09:47:01.078 +00:00] [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"=4.242461ms] [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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.080 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.092 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.092 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.094 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.096 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=90] [neededSchemaVersion=91] ["start time"=379.544µs] [gotSchemaVersion=91] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.098 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=120] [version=91] [2024/05/06 09:47:01.100 +00:00] [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"=4.662798ms] [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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.102 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.114 +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:47:01.119 +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:47:01.120 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.123 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=120] [2024/05/06 09:47:01.123 +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:47:01.124 +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:47:00.964 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.125 +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:47:01.126 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=120] [2024/05/06 09:47:01.127 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:01.127 +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:47:01.127 +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:47:01.129 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:01.129 +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:47:01.128 +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:47:01.147 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.147 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.147 +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:47:01.128 +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:47:01.147 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:01.157 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.159 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=91] [neededSchemaVersion=92] ["start time"=351.787µs] [gotSchemaVersion=92] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.161 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=92] [2024/05/06 09:47:01.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=92] ["take time"=11.31884ms] [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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.172 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.179 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.179 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.185 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.202 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=92] [neededSchemaVersion=93] ["start time"=404.367µs] [gotSchemaVersion=93] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.204 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=93] [2024/05/06 09:47:01.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=93] ["take time"=19.278782ms] [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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.209 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.221 +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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.221 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, 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:47:01.128 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.225 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, 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:47:01.128 +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:47:01.225 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.227 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=93] [neededSchemaVersion=94] ["start time"=336.28µs] [gotSchemaVersion=94] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.231 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=94] [2024/05/06 09:47:01.233 +00:00] [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"=6.029474ms] [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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.234 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.245 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.245 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.247 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.249 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=94] [neededSchemaVersion=95] ["start time"=364.344µs] [gotSchemaVersion=95] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.250 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=95] [2024/05/06 09:47:01.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=95] ["take time"=2.048309ms] [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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.252 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.259 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.259 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.259 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.262 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=95] [neededSchemaVersion=96] ["start time"=334.807µs] [gotSchemaVersion=96] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.263 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=121] [version=96] [2024/05/06 09:47:01.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=96] ["take time"=2.858041ms] [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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.265 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.307 +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:47:01.313 +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:47:01.313 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.318 +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:47:01.323 +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:47:01.325 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=121] [2024/05/06 09:47:01.326 +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:47:01.128 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.330 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=121] [2024/05/06 09:47:01.330 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:01.330 +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:47:01.331 +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:47:01.339 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:01.340 +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:47:01.338 +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:47:01.348 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.348 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.349 +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:47:01.338 +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:47:01.349 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:01.349 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.352 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=96] [neededSchemaVersion=97] ["start time"=545.7µs] [gotSchemaVersion=97] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.354 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=97] [2024/05/06 09:47:01.355 +00:00] [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.040357ms] [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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.357 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.366 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.366 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.373 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.376 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=97] [neededSchemaVersion=98] ["start time"=473.786µs] [gotSchemaVersion=98] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.377 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=98] [2024/05/06 09:47:01.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=98] ["take time"=21.372185ms] [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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.404 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.414 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.414 +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:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.422 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.424 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=98] [neededSchemaVersion=99] ["start time"=544.428µs] [gotSchemaVersion=99] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.426 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=99] [2024/05/06 09:47:01.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=99] ["take time"=10.468832ms] [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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.435 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.459 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.465 +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:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.465 +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:47:01.466 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=122] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:01.468 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029614383104, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.470 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029612548097, conflictStartTS=449574029612810240, conflictCommitTS=449574029613072384, 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:47:01.470 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029612548097, conflictStartTS=449574029612810240, conflictCommitTS=449574029613072384, 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:47:01.470 +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=449574029612548097, conflictStartTS=449574029612810240, conflictCommitTS=449574029613072384, 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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029614383104, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.478 +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:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.478 +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:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.479 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:47:01.338 +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:47:01.479 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.482 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=99] [neededSchemaVersion=100] ["start time"=477.582µs] [gotSchemaVersion=100] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.483 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=100] [2024/05/06 09:47:01.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=100] ["take time"=2.475605ms] [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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.484 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.494 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.494 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.495 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=100] [neededSchemaVersion=101] ["start time"=351.128µs] [gotSchemaVersion=101] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.498 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=101] [2024/05/06 09:47:01.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=101] ["take time"=2.510639ms] [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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.500 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.507 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.507 +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:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.508 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.510 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=101] [neededSchemaVersion=102] ["start time"=311.806µs] [gotSchemaVersion=102] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.511 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=122] [version=102] [2024/05/06 09:47:01.512 +00:00] [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.836048ms] [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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.513 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.520 +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:47:01.521 +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:47:01.522 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.526 +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:47:01.528 +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:47:01.531 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=122] [2024/05/06 09:47:01.531 +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:47:01.338 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.534 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=122] [2024/05/06 09:47:01.534 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:01.534 +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:47:01.535 +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:47:01.538 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:01.538 +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:47:01.536 +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:47:01.569 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.569 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.569 +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:47:01.536 +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:47:01.569 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:01.570 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.574 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=102] [neededSchemaVersion=103] ["start time"=1.028566ms] [gotSchemaVersion=103] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.579 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=103] [2024/05/06 09:47:01.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=103] ["take time"=6.676141ms] [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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.580 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.588 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.588 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.594 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.596 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=103] [neededSchemaVersion=104] ["start time"=316.29µs] [gotSchemaVersion=104] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.597 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=104] [2024/05/06 09:47:01.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=104] ["take time"=2.590193ms] [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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.599 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.606 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.606 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.612 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.614 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=104] [neededSchemaVersion=105] ["start time"=352.652µs] [gotSchemaVersion=105] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.615 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=105] [2024/05/06 09:47:01.616 +00:00] [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"=3.00844ms] [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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.617 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.627 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.627 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.628 +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:47:01.629 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=123] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:01.631 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.632 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.632 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.637 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.637 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.638 +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:47:01.640 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:7,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:01.641 +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:47:01.641 +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:47:01.641 +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:47:01.656 +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:47:01.656 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.657 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.658 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.666 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.666 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.666 +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:47:01.678 +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:47:01.678 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.679 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.679 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.698 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.698 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.699 +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:47:01.711 +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:47:01.711 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.712 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.713 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.720 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.720 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.721 +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:47:01.732 +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:47:01.733 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.733 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.734 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.755 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.755 +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:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.755 +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:47:01.833 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=224] [2024/05/06 09:47:01.833 +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:224, ArgLen:7, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.849 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.849 +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:224, ArgLen:7, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.863 +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:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.863 +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:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.863 +00:00] [INFO] [rollingback.go:265] ["run the cancelling DDL job"] [worker="worker 9, 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:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.863 +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:47:01.863 +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:47:01.864 +00:00] [INFO] [backfilling.go:399] ["backfill worker exit on error"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=123] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:01.864 +00:00] [WARN] [backfilling.go:641] ["backfill worker failed"] [category=ddl] ["job ID"=123] ["total added count"=0] ["start key"=74800000000000006f5f728000000000000001] ["result next key"=74800000000000006f5f7280000000000005e000] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:01.865 +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:224, ArgLen:7, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:01.877 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, 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:224, ArgLen:3, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, 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:47:01.877 +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:224, ArgLen:3, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.880 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=105] [neededSchemaVersion=106] ["start time"=394.863µs] [gotSchemaVersion=106] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.881 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=106] [2024/05/06 09:47:01.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=106] ["take time"=5.813794ms] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:224, ArgLen:3, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.887 +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:224, ArgLen:3, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.893 +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:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.893 +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:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.894 +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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.898 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=106] [neededSchemaVersion=107] ["start time"=454.442µs] [gotSchemaVersion=107] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.899 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=107] [2024/05/06 09:47:01.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=107] ["take time"=5.216305ms] [job="ID:123, Type:add primary key, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.904 +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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.915 +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:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.915 +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:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:224, ArgLen:0, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.918 +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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.920 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=107] [neededSchemaVersion=108] ["start time"=378.322µs] [gotSchemaVersion=108] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.922 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=123] [version=108] [2024/05/06 09:47:01.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=108] ["take time"=2.027501ms] [job="ID:123, Type:add primary key, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.922 +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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.934 +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:47:01.935 +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:47:01.935 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, 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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.943 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.944 +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:224, ArgLen:2, start time: 2024-05-06 09:47:01.536 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574029656850432, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.947 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=123] [2024/05/06 09:47:01.947 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:01.947 +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:47:01.947 +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:47:01.951 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:01.951 +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:47:01.948 +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:47:01.958 +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:47:01.960 +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:47:01.967 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.967 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.967 +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:47:01.948 +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:47:01.967 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:01.968 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.970 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=108] [neededSchemaVersion=109] ["start time"=361.729µs] [gotSchemaVersion=109] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.971 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=109] [2024/05/06 09:47:01.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=109] ["take time"=3.074846ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.974 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.985 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.985 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.993 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.995 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=109] [neededSchemaVersion=110] ["start time"=501.631µs] [gotSchemaVersion=110] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:01.997 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=110] [2024/05/06 09:47:01.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=110] ["take time"=2.058206ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:01.998 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.005 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.005 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.013 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.015 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=110] [neededSchemaVersion=111] ["start time"=442.588µs] [gotSchemaVersion=111] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:02.016 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=111] [2024/05/06 09:47:02.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=111] ["take time"=16.3863ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.032 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.040 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.040 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.040 +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:47:02.041 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=124] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:02.057 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.058 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.058 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.065 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.065 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.066 +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:47:02.067 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:8,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:02.068 +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:47:02.068 +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:47:02.069 +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:47:02.080 +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:47:02.080 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.081 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.082 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.091 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.091 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.091 +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:47:02.104 +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:47:02.104 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.104 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.105 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.114 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.114 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.114 +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:47:02.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:47:02.131 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.132 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.133 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.152 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.152 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.152 +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:47:02.176 +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:47:02.176 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.177 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.178 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.187 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.187 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.188 +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:47:02.269 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=288] [2024/05/06 09:47:02.269 +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:288, ArgLen:7, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.279 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.280 +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:288, ArgLen:7, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.289 +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:288, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.289 +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:288, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.289 +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:47:02.291 +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"=117.215367ms] [2024/05/06 09:47:02.291 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=124] [2024/05/06 09:47:02.291 +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:47:02.291 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:02.334 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.337 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=111] [neededSchemaVersion=112] ["start time"=433.463µs] [gotSchemaVersion=112] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:02.338 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=112] [2024/05/06 09:47:02.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=112] ["take time"=2.04178ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.339 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.347 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.347 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029764853760, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.348 +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:47:02.348 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.350 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=112] [neededSchemaVersion=113] ["start time"=361.419µs] [gotSchemaVersion=113] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:02.352 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=113] [2024/05/06 09:47:02.356 +00:00] [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"=5.938118ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.357 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.365 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.365 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.366 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=124] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000008] [endKey=74800000000000006f5f69ffff000000000008ff] [2024/05/06 09:47:02.371 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.372 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.373 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.382 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.382 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.384 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:8,StartKey:74800000000000006f5f69ffff000000000008,EndKey:74800000000000006f5f69ffff000000000008ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:02.385 +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:47:02.385 +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:47:02.385 +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:47:02.466 +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:47:02.466 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.466 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.482 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.486 +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"=157.953µs] [2024/05/06 09:47:02.486 +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:47:02.486 +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:47:02.491 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.491 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.493 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:02.561 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:47:02.561 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.564 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=113] [neededSchemaVersion=114] ["start time"=383.811µs] [gotSchemaVersion=114] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:02.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=124] [version=114] [2024/05/06 09:47:02.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=114] ["take time"=12.907584ms] [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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.590 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.604 +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:47:02.609 +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:47:02.609 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, 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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.613 +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:47:01.948 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574029850312704, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:02.618 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=124] [2024/05/06 09:47:02.618 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:02.618 +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:47:02.621 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:02.621 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:47:02.632 +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:47:02.632 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.636 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.638 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.641 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574029920043008, conflictStartTS=449574029920305153, conflictCommitTS=449574029920829440, 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:47:02.642 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574029920043008, conflictStartTS=449574029920305153, conflictCommitTS=449574029920829440, 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:47:02.642 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574029920043008, conflictStartTS=449574029920305153, conflictCommitTS=449574029920829440, 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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.658 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.658 +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:47:02.62 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.659 +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:47:02.62 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:02.659 +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:47:02.62 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.659 +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:47:02.62 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.662 +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:47:02.62 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.662 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=125] [2024/05/06 09:47:02.662 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:02.662 +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:47:02.663 +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:47:02.670 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:02.670 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:47:02.678 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.678 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.685 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.687 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=114] [neededSchemaVersion=115] ["start time"=53.811µs] [gotSchemaVersion=114] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:02.689 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=114] [neededSchemaVersion=116] ["start time"=393.01µs] [gotSchemaVersion=116] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:02.692 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=116] [2024/05/06 09:47:02.693 +00:00] [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"=6.050016ms] [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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.694 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.721 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.723 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.724 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.727 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=116] [neededSchemaVersion=117] ["start time"=400.436µs] [gotSchemaVersion=117] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:02.728 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=117] [2024/05/06 09:47:02.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=117] ["take time"=5.387351ms] [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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.734 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.744 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.744 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.747 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.750 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=117] [neededSchemaVersion=118] ["start time"=429.279µs] [gotSchemaVersion=118] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:02.751 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=118] [2024/05/06 09:47:02.761 +00:00] [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"=11.642066ms] [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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.762 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.766 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.766 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.768 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.777 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=118] [neededSchemaVersion=119] ["start time"=570.656µs] [gotSchemaVersion=119] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:02.779 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=126] [version=119] [2024/05/06 09:47:02.781 +00:00] [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"=4.221966ms] [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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.783 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.792 +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:47:02.800 +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:47:02.801 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.804 +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:47:02.664 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:02.927 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=126] [2024/05/06 09:47:02.952 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:02.987 +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:47:02.991 +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:47:03.011 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:03.012 +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:47:02.99 +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:47:03.053 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.053 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.054 +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:47:02.99 +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:47:03.054 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:03.057 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.061 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=119] [neededSchemaVersion=120] ["start time"=450.099µs] [gotSchemaVersion=120] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.063 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=120] [2024/05/06 09:47:03.065 +00:00] [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"=4.228734ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.066 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.078 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.079 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.079 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.082 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=120] [neededSchemaVersion=121] ["start time"=440.029µs] [gotSchemaVersion=121] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.083 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=121] [2024/05/06 09:47:03.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=121] ["take time"=4.831947ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.087 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.096 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.096 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.097 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.099 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=121] [neededSchemaVersion=122] ["start time"=451.885µs] [gotSchemaVersion=122] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.101 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=122] [2024/05/06 09:47:03.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=122] ["take time"=2.188297ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.101 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.108 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.109 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.109 +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:47:03.109 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=127] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:03.111 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.112 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.112 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.119 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.119 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.119 +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:47:03.121 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:9,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:03.122 +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:47:03.122 +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:47:03.122 +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:47:03.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:47:03.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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.132 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.132 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.139 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.139 +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:0, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.139 +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:47:03.167 +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:47:03.167 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.168 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.169 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.175 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.175 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.175 +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:47:03.188 +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:47:03.188 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.188 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.189 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.195 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.195 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.196 +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:47:03.221 +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:47:03.221 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.223 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.223 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.232 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.233 +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:0, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.233 +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:47:03.326 +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"=103.270538ms] [2024/05/06 09:47:03.326 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=127] [2024/05/06 09:47:03.326 +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:47:03.380 +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:47:03.380 +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:192, ArgLen:7, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.385 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.386 +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:192, ArgLen:7, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.392 +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:192, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.392 +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:192, ArgLen:0, start time: 2024-05-06 09:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.392 +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:47:03.396 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:03.514 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.516 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=122] [neededSchemaVersion=123] ["start time"=398.944µs] [gotSchemaVersion=123] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.518 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=123] [2024/05/06 09:47:03.520 +00:00] [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"=4.215512ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.521 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.529 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.529 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030045085696, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.529 +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:47:03.530 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.532 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=123] [neededSchemaVersion=124] ["start time"=347.678µs] [gotSchemaVersion=124] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.533 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=124] [2024/05/06 09:47:03.533 +00:00] [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"=2.0344ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.535 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.543 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.543 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.543 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=127] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000009] [endKey=74800000000000006f5f69ffff000000000009ff] [2024/05/06 09:47:03.552 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.553 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.554 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.559 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.559 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.561 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:9,StartKey:74800000000000006f5f69ffff000000000009,EndKey:74800000000000006f5f69ffff000000000009ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:03.561 +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:47:03.562 +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:47:03.562 +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:47:03.612 +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:47:03.612 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.613 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.613 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.620 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.620 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.663 +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"=230.351µs] [2024/05/06 09:47:03.663 +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:47:03.663 +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:47:03.698 +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:47:03.698 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.699 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.700 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.707 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.708 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.710 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:03.777 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:47:03.778 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.780 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=124] [neededSchemaVersion=125] ["start time"=386.476µs] [gotSchemaVersion=125] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.782 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=127] [version=125] [2024/05/06 09:47:03.785 +00:00] [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"=5.010976ms] [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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.786 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.793 +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:47:03.794 +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:47:03.794 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.797 +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:47:02.99 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030158856193, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.797 +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:47:03.800 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=127] [2024/05/06 09:47:03.800 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:03.800 +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:47:03.802 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:03.802 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:47:03.806 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.806 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.809 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.811 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=125] [neededSchemaVersion=126] ["start time"=313.722µs] [gotSchemaVersion=126] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:03.813 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=126] [2024/05/06 09:47:03.813 +00:00] [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"=2.041322ms] [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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.814 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.817 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.818 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.819 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.820 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=126] [neededSchemaVersion=127] ["start time"=327.88µs] [gotSchemaVersion=127] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:03.821 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=127] [2024/05/06 09:47:03.822 +00:00] [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.269528ms] [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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.823 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.828 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.828 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.829 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.831 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=127] [neededSchemaVersion=128] ["start time"=315.598µs] [gotSchemaVersion=128] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:03.832 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=128] [2024/05/06 09:47:03.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=128] ["take time"=4.764478ms] [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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.836 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.839 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.839 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.840 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.842 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=128] [neededSchemaVersion=129] ["start time"=317.204µs] [gotSchemaVersion=129] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:03.843 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=128] [version=129] [2024/05/06 09:47:03.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=129] ["take time"=3.869981ms] [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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.846 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.855 +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:47:03.856 +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:47:03.856 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.859 +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:47:03.801 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:03.862 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=128] [2024/05/06 09:47:03.862 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:03.862 +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:47:03.864 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:03.864 +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:47:03.863 +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:47:03.871 +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:47:03.879 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.879 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.880 +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:47:03.863 +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:47:03.880 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:03.880 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.909 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449574030247985152] ["min commit ts"=449574030248247297] [key=bURCOjIAAAAA+wAAAAAAAABoVGFibGU6MTH/MQAAAAAAAAD4] [2024/05/06 09:47:03.909 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449574030246936577] [info="{StartTs:449574030246936577 AttemptedCommitTs:449574030247985152 Key:6d44423a3200000000fb00000000000000685461626c653a3131ff3100000000000000f8 MinCommitTs:449574030248247297}"] [2024/05/06 09:47:03.911 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=129] [neededSchemaVersion=130] ["start time"=381.014µs] [gotSchemaVersion=130] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.912 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=130] [2024/05/06 09:47:03.926 +00:00] [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"=15.9865ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.927 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.935 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.935 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.936 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.938 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=130] [neededSchemaVersion=131] ["start time"=344.469µs] [gotSchemaVersion=131] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.939 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=131] [2024/05/06 09:47:03.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=131] ["take time"=2.844822ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.958 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.965 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.965 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.966 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.968 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=131] [neededSchemaVersion=132] ["start time"=400.821µs] [gotSchemaVersion=132] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:03.970 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=132] [2024/05/06 09:47:03.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=132] ["take time"=6.936576ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:03.981 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.012 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.012 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.013 +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:47:04.013 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=129] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:04.015 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.016 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.016 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.025 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.025 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.025 +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:47:04.031 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:10,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:04.032 +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:47:04.032 +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:47:04.032 +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:47:04.041 +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:47:04.041 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.042 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.043 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.060 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.060 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.061 +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:47:04.074 +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:47:04.074 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.075 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.075 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.083 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.083 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.083 +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:47:04.100 +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:47:04.100 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.101 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.101 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.107 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.108 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.108 +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:47:04.122 +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:47:04.122 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.123 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.123 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.132 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.132 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.133 +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:47:04.295 +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"=161.850741ms] [2024/05/06 09:47:04.295 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=129] [2024/05/06 09:47:04.295 +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:47:04.305 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=128] [2024/05/06 09:47:04.305 +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:128, ArgLen:7, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.306 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.318 +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:128, ArgLen:7, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.363 +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:128, ArgLen:0, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.363 +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:128, ArgLen:0, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.364 +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:47:04.366 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:04.419 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.421 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=132] [neededSchemaVersion=133] ["start time"=414.908µs] [gotSchemaVersion=133] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.422 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=133] [2024/05/06 09:47:04.422 +00:00] [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.057817ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.423 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.434 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.434 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030282063872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.434 +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:47:04.435 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.437 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=133] [neededSchemaVersion=134] ["start time"=415.748µs] [gotSchemaVersion=134] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.439 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=134] [2024/05/06 09:47:04.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=134] ["take time"=2.5518ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.454 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.462 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.462 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.462 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=129] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000000a] [endKey=74800000000000006f5f69ffff00000000000aff] [2024/05/06 09:47:04.466 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.468 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.468 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.477 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.477 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.479 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:10,StartKey:74800000000000006f5f69ffff00000000000a,EndKey:74800000000000006f5f69ffff00000000000aff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:04.480 +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:47:04.480 +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:47:04.481 +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:47:04.550 +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:47:04.560 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.560 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.561 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.568 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.568 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.596 +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"=247.249µs] [2024/05/06 09:47:04.596 +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:47:04.596 +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:47:04.635 +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:47:04.635 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.636 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.638 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.649 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.649 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.651 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:04.767 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:47:04.767 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.770 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=134] [neededSchemaVersion=135] ["start time"=354.901µs] [gotSchemaVersion=135] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.772 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=129] [version=135] [2024/05/06 09:47:04.772 +00:00] [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"=2.035174ms] [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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.773 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.782 +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:47:04.786 +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:47:04.786 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.790 +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:47:04.791 +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:47:03.863 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030399766529, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.793 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=129] [2024/05/06 09:47:04.793 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:04.794 +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:47:04.799 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:04.799 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:47:04.808 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.808 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.809 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.811 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=135] [neededSchemaVersion=136] ["start time"=399.59µs] [gotSchemaVersion=136] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:04.813 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=136] [2024/05/06 09:47:04.813 +00:00] [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.608549ms] [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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.815 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.826 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.826 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.828 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.831 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=136] [neededSchemaVersion=137] ["start time"=424.347µs] [gotSchemaVersion=137] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:04.833 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=137] [2024/05/06 09:47:04.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=137] ["take time"=4.911874ms] [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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.836 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.857 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.858 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.860 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.867 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=137] [neededSchemaVersion=138] ["start time"=385.903µs] [gotSchemaVersion=138] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:04.869 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=138] [2024/05/06 09:47:04.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=138] ["take time"=19.952741ms] [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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.890 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.898 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.898 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.899 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.901 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=138] [neededSchemaVersion=139] ["start time"=348.566µs] [gotSchemaVersion=139] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:04.902 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=130] [version=139] [2024/05/06 09:47:04.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=139] ["take time"=2.398526ms] [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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.914 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.919 +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:47:04.922 +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:47:04.922 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.926 +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:47:04.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:04.929 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=130] [2024/05/06 09:47:04.929 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:04.929 +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:47:04.931 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:04.931 +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:47:04.93 +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:47:04.941 +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:47:04.942 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.942 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.942 +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:47:04.93 +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:47:04.942 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:04.944 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.945 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=139] [neededSchemaVersion=140] ["start time"=338.899µs] [gotSchemaVersion=140] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.947 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=140] [2024/05/06 09:47:04.948 +00:00] [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.817632ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.949 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.954 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.954 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.955 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.956 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=140] [neededSchemaVersion=141] ["start time"=308.078µs] [gotSchemaVersion=141] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.957 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=141] [2024/05/06 09:47:04.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=141] ["take time"=2.79186ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.960 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.966 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.966 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.967 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.968 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=141] [neededSchemaVersion=142] ["start time"=321.065µs] [gotSchemaVersion=142] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:04.969 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=142] [2024/05/06 09:47:04.970 +00:00] [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"=2.718418ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.971 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.976 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.976 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.977 +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:47:04.977 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=131] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:04.980 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.982 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:04.983 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.992 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.993 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:04.993 +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:47:04.995 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:11,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:04.996 +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:47:04.996 +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:47:04.996 +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:47:05.011 +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:47:05.011 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.012 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.012 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.018 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.018 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.019 +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:47:05.032 +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:47:05.032 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.033 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.033 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.038 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.038 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.039 +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:47:05.053 +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:47:05.053 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.053 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.054 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.060 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.060 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.060 +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:47:05.073 +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:47:05.073 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.074 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.074 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.080 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.080 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.080 +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:47:05.093 +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:47:05.093 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.094 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.094 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.102 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.102 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.102 +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:47:05.172 +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:47:05.176 +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:416, ArgLen:7, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.177 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.177 +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:416, ArgLen:7, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.186 +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:416, ArgLen:0, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.186 +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:416, ArgLen:0, start time: 2024-05-06 09:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.187 +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:47:05.194 +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"=97.356255ms] [2024/05/06 09:47:05.194 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=131] [2024/05/06 09:47:05.194 +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:47:05.194 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:05.244 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.247 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=142] [neededSchemaVersion=143] ["start time"=1.894505ms] [gotSchemaVersion=143] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:05.249 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=143] [2024/05/06 09:47:05.250 +00:00] [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"=5.054081ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.251 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.258 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.258 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030534770688, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.258 +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:47:05.259 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.261 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=143] [neededSchemaVersion=144] ["start time"=365.11µs] [gotSchemaVersion=144] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:05.263 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=144] [2024/05/06 09:47:05.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=144] ["take time"=5.903427ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.268 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.275 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.276 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.276 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=131] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000000b] [endKey=74800000000000006f5f69ffff00000000000bff] [2024/05/06 09:47:05.292 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.296 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.297 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.315 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.315 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.318 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:11,StartKey:74800000000000006f5f69ffff00000000000b,EndKey:74800000000000006f5f69ffff00000000000bff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:05.320 +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:47:05.320 +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:47:05.320 +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:47:05.421 +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:47:05.421 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.422 +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"=191.764µs] [2024/05/06 09:47:05.422 +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:47:05.422 +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:47:05.423 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.423 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.431 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.431 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.433 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:05.510 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=] [collation=] [2024/05/06 09:47:05.510 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.512 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=144] [neededSchemaVersion=145] ["start time"=377.511µs] [gotSchemaVersion=145] [phyTblIDs="[111]"] [actionTypes="[32]"] [diffTypes="[\"add primary key\"]"] [2024/05/06 09:47:05.514 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=131] [version=145] [2024/05/06 09:47:05.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=145] ["take time"=2.05497ms] [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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.515 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.521 +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:47:05.523 +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:47:05.523 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.528 +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:47:04.93 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030613151744, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.533 +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:47:05.533 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=131] [2024/05/06 09:47:05.533 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:05.534 +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:47:05.545 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:05.545 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop primary key"] [2024/05/06 09:47:05.554 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.554 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.556 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.558 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=145] [neededSchemaVersion=146] ["start time"=364.387µs] [gotSchemaVersion=146] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:05.559 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=146] [2024/05/06 09:47:05.559 +00:00] [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.110812ms] [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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.560 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.566 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.566 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.566 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.568 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=146] [neededSchemaVersion=147] ["start time"=356.71µs] [gotSchemaVersion=147] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:05.570 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=147] [2024/05/06 09:47:05.570 +00:00] [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"=2.199925ms] [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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.571 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.577 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.577 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.578 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.583 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=147] [neededSchemaVersion=148] ["start time"=357.357µs] [gotSchemaVersion=148] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:05.585 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=148] [2024/05/06 09:47:05.585 +00:00] [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"=2.045418ms] [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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.589 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.595 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.595 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.596 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.599 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=148] [neededSchemaVersion=149] ["start time"=364.854µs] [gotSchemaVersion=149] [phyTblIDs="[111]"] [actionTypes="[33]"] [diffTypes="[\"drop primary key\"]"] [2024/05/06 09:47:05.601 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=132] [version=149] [2024/05/06 09:47:05.602 +00:00] [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"=2.940664ms] [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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.611 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.617 +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:47:05.618 +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:47:05.618 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.621 +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:47:05.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:05.627 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=132] [2024/05/06 09:47:05.627 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:05.627 +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:47:05.638 +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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:05.638 +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:47:05.628 +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:47:05.645 +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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.655 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, 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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.656 +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:47:05.628 +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:47:05.656 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:05.658 +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:47:05.658 +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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.660 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574030709882880, conflictStartTS=449574030710145024, conflictCommitTS=449574030711193601, 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:47:05.660 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574030709882880, conflictStartTS=449574030710145024, conflictCommitTS=449574030711193601, 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:47:05.660 +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=449574030709882880, conflictStartTS=449574030710145024, conflictCommitTS=449574030711193601, 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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.669 +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:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.670 +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:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.628 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.670 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, 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:47:05.628 +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:47:05.670 +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:47:05.628 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.670 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:05.628 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.673 +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:47:05.628 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.675 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=133] [2024/05/06 09:47:05.675 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:05.675 +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:47:05.676 +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:47:05.680 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:05.680 +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:47:05.677 +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:47:05.688 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.688 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.689 +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:47:05.677 +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:47:05.689 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:05.690 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.692 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=149] [neededSchemaVersion=151] ["start time"=386.762µs] [gotSchemaVersion=151] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.694 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=151] [2024/05/06 09:47:05.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=151] ["take time"=2.01802ms] [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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.695 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.732 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.735 +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:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.736 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.737 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574030732689408, conflictStartTS=449574030732951552, conflictCommitTS=449574030733475840, 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:47:05.737 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574030732689408, conflictStartTS=449574030732951552, conflictCommitTS=449574030733475840, 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:47:05.737 +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=449574030732689408, conflictStartTS=449574030732951552, conflictCommitTS=449574030733475840, 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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.752 +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:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.752 +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:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.677 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.753 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:47:05.677 +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:47:05.753 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.754 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=134] [2024/05/06 09:47:05.755 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.762 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.762 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.763 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.780 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=151] [neededSchemaVersion=153] ["start time"=415.611µs] [gotSchemaVersion=153] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.782 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=153] [2024/05/06 09:47:05.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=153] ["take time"=4.228489ms] [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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.787 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.801 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.801 +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:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.802 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.805 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=153] [neededSchemaVersion=154] ["start time"=260.355µs] [gotSchemaVersion=154] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=134] [version=154] [2024/05/06 09:47:05.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=154] ["take time"=5.222916ms] [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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.814 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.823 +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:47:05.824 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=134] [jobType="add index"] [2024/05/06 09:47:05.825 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.829 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=134] [2024/05/06 09:47:05.829 +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:47:05.677 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.832 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=134] [2024/05/06 09:47:05.832 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:05.832 +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:47:05.833 +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:47:05.836 +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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:05.836 +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:47:05.834 +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:47:05.836 +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:47:05.838 +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:47:05.848 +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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.848 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.848 +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:47:05.834 +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:47:05.848 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:05.849 +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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.857 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=154] [neededSchemaVersion=155] ["start time"=388.658µs] [gotSchemaVersion=155] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.864 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=155] [2024/05/06 09:47:05.864 +00:00] [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"=8.015293ms] [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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.866 +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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.877 +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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.877 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, 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:47:05.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.877 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:47:05.834 +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:47:05.877 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.878 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=135] [2024/05/06 09:47:05.879 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.887 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.887 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.890 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.894 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=155] [neededSchemaVersion=156] ["start time"=416.694µs] [gotSchemaVersion=156] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.895 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=156] [2024/05/06 09:47:05.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=156] ["take time"=4.187335ms] [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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.898 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.904 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.904 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.905 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.907 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=156] [neededSchemaVersion=157] ["start time"=291.772µs] [gotSchemaVersion=157] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.908 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=135] [version=157] [2024/05/06 09:47:05.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=157] ["take time"=8.73308ms] [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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.916 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.924 +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:47:05.925 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=135] [jobType="add index"] [2024/05/06 09:47:05.925 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.928 +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:47:05.928 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=135] [2024/05/06 09:47:05.929 +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:47:05.834 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.929 +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:47:05.932 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=135] [2024/05/06 09:47:05.932 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:05.932 +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:47:05.932 +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:47:05.934 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:05.934 +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:47:05.933 +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:47:05.941 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.941 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.941 +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:47:05.933 +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:47:05.941 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:05.942 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.944 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=157] [neededSchemaVersion=158] ["start time"=329.423µs] [gotSchemaVersion=158] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.945 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=158] [2024/05/06 09:47:05.946 +00:00] [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.933986ms] [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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.947 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.953 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.953 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.954 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.956 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=158] [neededSchemaVersion=159] ["start time"=320.822µs] [gotSchemaVersion=159] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.958 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=159] [2024/05/06 09:47:05.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=159] ["take time"=2.781997ms] [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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.959 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.965 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.971 +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:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.972 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.973 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574030793768960, conflictStartTS=449574030794031104, conflictCommitTS=449574030795341824, 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:47:05.973 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574030793768960, conflictStartTS=449574030794031104, conflictCommitTS=449574030795341824, 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:47:05.973 +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=449574030793768960, conflictStartTS=449574030794031104, conflictCommitTS=449574030795341824, 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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.980 +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:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.980 +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:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:05.933 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.986 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, 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:47:05.933 +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:47:05.986 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:05.990 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=159] [neededSchemaVersion=161] ["start time"=427.689µs] [gotSchemaVersion=161] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:05.991 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=161] [2024/05/06 09:47:05.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=161] ["take time"=5.225899ms] [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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.001 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.007 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.007 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.008 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.010 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=161] [neededSchemaVersion=162] ["start time"=405.621µs] [gotSchemaVersion=162] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.012 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=162] [2024/05/06 09:47:06.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=162] ["take time"=5.748234ms] [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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.017 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.023 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.023 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.024 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=162] [neededSchemaVersion=163] ["start time"=337.824µs] [gotSchemaVersion=163] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.031 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=136] [version=163] [2024/05/06 09:47:06.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=163] ["take time"=11.184601ms] [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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.038 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.048 +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:47:06.050 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=136] [jobType="add index"] [2024/05/06 09:47:06.050 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.053 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=136] [2024/05/06 09:47:06.053 +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:47:05.933 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.059 +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:47:06.059 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=136] [2024/05/06 09:47:06.059 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:06.060 +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:47:06.060 +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:47:06.075 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:06.076 +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:47:06.061 +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:47:06.076 +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:47:06.086 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.087 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.087 +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:47:06.061 +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:47:06.087 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:06.092 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.095 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=163] [neededSchemaVersion=164] ["start time"=398.294µs] [gotSchemaVersion=164] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.096 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=164] [2024/05/06 09:47:06.096 +00:00] [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.021637ms] [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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.098 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.106 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.106 +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:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.107 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.109 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=164] [neededSchemaVersion=165] ["start time"=367.554µs] [gotSchemaVersion=165] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.110 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=165] [2024/05/06 09:47:06.111 +00:00] [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"=2.128933ms] [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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.112 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.121 +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:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.121 +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:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.061 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.122 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:47:06.061 +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:47:06.122 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.125 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=165] [neededSchemaVersion=166] ["start time"=375.468µs] [gotSchemaVersion=166] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.126 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=166] [2024/05/06 09:47:06.130 +00:00] [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"=6.074661ms] [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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.131 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.141 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.141 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.142 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.144 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=166] [neededSchemaVersion=167] ["start time"=413.214µs] [gotSchemaVersion=167] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.146 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=167] [2024/05/06 09:47:06.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=167] ["take time"=4.23262ms] [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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.149 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.156 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.156 +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 reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.157 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.160 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=167] [neededSchemaVersion=168] ["start time"=483.217µs] [gotSchemaVersion=168] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.161 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=137] [version=168] [2024/05/06 09:47:06.161 +00:00] [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.029188ms] [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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.162 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.169 +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:47:06.176 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=137] [jobType="add index"] [2024/05/06 09:47:06.177 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.181 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=137] [2024/05/06 09:47:06.181 +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:47:06.061 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.185 +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:47:06.186 +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:47:06.189 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=137] [2024/05/06 09:47:06.189 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:06.189 +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:47:06.203 +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:47:06.206 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:06.206 +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:47:06.204 +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:47:06.215 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.215 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.215 +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:47:06.204 +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:47:06.215 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:06.216 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.218 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=168] [neededSchemaVersion=169] ["start time"=379.261µs] [gotSchemaVersion=169] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.219 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=169] [2024/05/06 09:47:06.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=169] ["take time"=2.032615ms] [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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.220 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.227 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.227 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.229 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.234 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=169] [neededSchemaVersion=170] ["start time"=445.569µs] [gotSchemaVersion=170] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.235 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=170] [2024/05/06 09:47:06.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=170] ["take time"=28.720928ms] [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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.269 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.275 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.276 +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:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.277 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.279 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=170] [neededSchemaVersion=171] ["start time"=388.669µs] [gotSchemaVersion=171] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.281 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=171] [2024/05/06 09:47:06.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=171] ["take time"=4.277774ms] [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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.285 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.289 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.291 +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 reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.291 +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:47:06.292 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=138] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:06.295 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030879490048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.296 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574030878703616, conflictStartTS=449574030878703618, conflictCommitTS=449574030879227904, 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:47:06.296 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574030878703616, conflictStartTS=449574030878703618, conflictCommitTS=449574030879227904, 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:47:06.296 +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=449574030878703616, conflictStartTS=449574030878703618, conflictCommitTS=449574030879227904, 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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030879490048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.303 +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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.303 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, 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:47:06.204 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.304 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 8, 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:47:06.204 +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:47:06.304 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.306 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=171] [neededSchemaVersion=172] ["start time"=380.987µs] [gotSchemaVersion=172] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.307 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=172] [2024/05/06 09:47:06.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=172] ["take time"=3.440635ms] [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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.310 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.317 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.317 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.318 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.327 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=172] [neededSchemaVersion=173] ["start time"=469.226µs] [gotSchemaVersion=173] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.329 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=173] [2024/05/06 09:47:06.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=173] ["take time"=19.642383ms] [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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.340 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.353 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.353 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.355 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.358 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=173] [neededSchemaVersion=174] ["start time"=435.696µs] [gotSchemaVersion=174] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.360 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=138] [version=174] [2024/05/06 09:47:06.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=174] ["take time"=13.708587ms] [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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.372 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.392 +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:47:06.393 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=138] [jobType="add index"] [2024/05/06 09:47:06.394 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.403 +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:47:06.405 +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:47:06.405 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=138] [2024/05/06 09:47:06.406 +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:47:06.204 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.410 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=138] [2024/05/06 09:47:06.410 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:06.410 +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:47:06.410 +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:47:06.415 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:06.415 +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:47:06.411 +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:47:06.424 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.424 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.425 +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:47:06.411 +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:47:06.425 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:06.431 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.436 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=174] [neededSchemaVersion=175] ["start time"=407.766µs] [gotSchemaVersion=175] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.437 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=175] [2024/05/06 09:47:06.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=175] ["take time"=2.064948ms] [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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.439 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.447 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.447 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.448 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=175] [neededSchemaVersion=176] ["start time"=622.504µs] [gotSchemaVersion=176] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.499 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=176] [2024/05/06 09:47:06.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=176] ["take time"=4.19208ms] [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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.501 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.509 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.509 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.511 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.516 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=176] [neededSchemaVersion=177] ["start time"=561.531µs] [gotSchemaVersion=177] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.517 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=177] [2024/05/06 09:47:06.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=177] ["take time"=9.66041ms] [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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.526 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.582 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.582 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.582 +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:47:06.583 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=139] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:06.595 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.598 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.599 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.619 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.619 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.619 +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:47:06.621 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:17,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:06.622 +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:47:06.622 +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:47:06.622 +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:47:06.635 +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:47:06.635 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.636 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.636 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.644 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.644 +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:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.644 +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:47:06.664 +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:47:06.664 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.665 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.665 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.673 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.673 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.674 +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:47:06.694 +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:47:06.694 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.695 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.696 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.703 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.703 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.704 +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:47:06.719 +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:47:06.719 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.720 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.720 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.737 +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:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.737 +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:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.738 +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:47:06.847 +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"=120.625782ms] [2024/05/06 09:47:06.847 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=139] [2024/05/06 09:47:06.847 +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:47:06.848 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=768] [2024/05/06 09:47:06.857 +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:768, ArgLen:6, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.858 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.859 +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:768, ArgLen:6, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.881 +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:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.881 +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:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.881 +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:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.881 +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:47:06.881 +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:47:06.883 +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:768, ArgLen:6, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:06.886 +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:768, ArgLen:3, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, 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:47:06.886 +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:768, ArgLen:3, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.888 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=177] [neededSchemaVersion=178] ["start time"=416.48µs] [gotSchemaVersion=178] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.890 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=178] [2024/05/06 09:47:06.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=178] ["take time"=5.226686ms] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:768, ArgLen:3, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.894 +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:768, ArgLen:3, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.902 +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:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.902 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.902 +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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=178] [neededSchemaVersion=179] ["start time"=373.171µs] [gotSchemaVersion=179] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.906 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=179] [2024/05/06 09:47:06.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=179] ["take time"=2.028241ms] [job="ID:139, Type:add index, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.907 +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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.924 +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:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.924 +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 reorganization, SchemaID:2, TableID:111, RowCount:768, ArgLen:0, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.925 +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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.930 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=179] [neededSchemaVersion=180] ["start time"=376.722µs] [gotSchemaVersion=180] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:06.931 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=139] [version=180] [2024/05/06 09:47:06.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=180] ["take time"=2.277109ms] [job="ID:139, Type:add index, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.932 +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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.953 +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:47:06.961 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=139] [jobType="add index"] [2024/05/06 09:47:06.961 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.964 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.964 +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:768, ArgLen:2, start time: 2024-05-06 09:47:06.411 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:449574030955511810, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.967 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=139] [2024/05/06 09:47:06.967 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:06.967 +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:47:06.968 +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:47:06.974 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:06.974 +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:47:06.969 +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:47:06.984 +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:47:06.986 +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:47:06.991 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.991 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.992 +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:47:06.969 +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:47:06.993 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:06.995 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:06.998 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=180] [neededSchemaVersion=181] ["start time"=442.787µs] [gotSchemaVersion=181] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.003 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=181] [2024/05/06 09:47:07.009 +00:00] [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"=11.577284ms] [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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.010 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.022 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.022 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.026 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.030 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=181] [neededSchemaVersion=182] ["start time"=424.011µs] [gotSchemaVersion=182] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.032 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=182] [2024/05/06 09:47:07.035 +00:00] [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"=5.258057ms] [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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.036 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.057 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.058 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.058 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.067 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=182] [neededSchemaVersion=183] ["start time"=445.879µs] [gotSchemaVersion=183] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.069 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=183] [2024/05/06 09:47:07.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=183] ["take time"=4.076855ms] [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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.072 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.080 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.097 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.097 +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:47:07.098 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=140] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:07.100 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.101 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.102 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.109 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.109 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.109 +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:47:07.111 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:18,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:07.112 +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:47:07.112 +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:47:07.113 +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:47:07.127 +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:47:07.128 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.128 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.129 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.137 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.137 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.137 +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:47:07.164 +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:47:07.164 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.165 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.165 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.173 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.173 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.174 +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:47:07.213 +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:47:07.213 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.214 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.214 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.222 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.222 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.223 +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:47:07.308 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=992] [2024/05/06 09:47:07.308 +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:992, ArgLen:6, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.309 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.310 +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:992, ArgLen:6, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.313 +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"=99.995932ms] [2024/05/06 09:47:07.313 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=140] [2024/05/06 09:47:07.313 +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:47:07.319 +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:992, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.319 +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:992, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.319 +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:47:07.321 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:07.464 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.466 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=183] [neededSchemaVersion=184] ["start time"=418.957µs] [gotSchemaVersion=184] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.467 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=184] [2024/05/06 09:47:07.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=184] ["take time"=2.0267ms] [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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.468 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.475 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.475 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031090515968, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.475 +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:47:07.476 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.478 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=184] [neededSchemaVersion=185] ["start time"=370.513µs] [gotSchemaVersion=185] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.479 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=185] [2024/05/06 09:47:07.479 +00:00] [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"=2.035056ms] [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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.480 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.488 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.489 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.489 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=140] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000012] [endKey=74800000000000006f5f69ffff000000000012ff] [2024/05/06 09:47:07.491 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.492 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.493 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.501 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.501 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.503 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:18,StartKey:74800000000000006f5f69ffff000000000012,EndKey:74800000000000006f5f69ffff000000000012ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:07.504 +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:47:07.504 +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:47:07.504 +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:47:07.606 +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"=183.802µs] [2024/05/06 09:47:07.606 +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:47:07.606 +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:47:07.645 +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:47:07.647 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.648 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.649 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.656 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.656 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.658 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:07.705 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:07.705 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.708 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=185] [neededSchemaVersion=186] ["start time"=378.408µs] [gotSchemaVersion=186] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.709 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=140] [version=186] [2024/05/06 09:47:07.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=186] ["take time"=2.04423ms] [job="ID:140, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.710 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.734 +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:47:07.735 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=140] [jobType="add index"] [2024/05/06 09:47:07.736 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.740 +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:47:06.969 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031193276416, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.744 +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:47:07.745 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=140] [2024/05/06 09:47:07.745 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:07.746 +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:47:07.748 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:07.749 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:47:07.756 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.760 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, 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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.761 +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:47:07.747 +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:47:07.761 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:07.761 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.763 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031263268865, conflictStartTS=449574031263268866, conflictCommitTS=449574031263793152, 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:47:07.763 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031263268865, conflictStartTS=449574031263268866, conflictCommitTS=449574031263793152, 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:47:07.763 +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=449574031263268865, conflictStartTS=449574031263268866, conflictCommitTS=449574031263793152, 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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.770 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.771 +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:47:07.747 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.771 +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:47:07.747 +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:47:07.771 +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:47:07.747 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.772 +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:47:07.747 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.774 +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:47:07.747 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.775 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=141] [2024/05/06 09:47:07.775 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:07.776 +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:47:07.776 +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:47:07.778 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:07.779 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:47:07.794 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.794 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.795 +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:47:07.777 +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:47:07.795 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:07.798 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.800 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=186] [neededSchemaVersion=188] ["start time"=457.81µs] [gotSchemaVersion=188] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.801 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=188] [2024/05/06 09:47:07.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=188] ["take time"=6.382307ms] [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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.810 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.818 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.821 +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:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.827 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.828 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031279521792, conflictStartTS=449574031279783936, conflictCommitTS=449574031280046080, 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:47:07.828 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031279521792, conflictStartTS=449574031279783936, conflictCommitTS=449574031280046080, 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:47:07.828 +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=449574031279521792, conflictStartTS=449574031279783936, conflictCommitTS=449574031280046080, 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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.838 +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:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.838 +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:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:07.777 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.839 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, 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:47:07.777 +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:47:07.839 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.840 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=142] [2024/05/06 09:47:07.841 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.868 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.868 +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:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.869 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.872 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=188] [neededSchemaVersion=190] ["start time"=428.665µs] [gotSchemaVersion=190] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.873 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=190] [2024/05/06 09:47:07.881 +00:00] [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"=10.355525ms] [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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.892 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.903 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.903 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.910 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.914 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=190] [neededSchemaVersion=191] ["start time"=441.474µs] [gotSchemaVersion=191] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.916 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=142] [version=191] [2024/05/06 09:47: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=191] ["take time"=8.817526ms] [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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.924 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.935 +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:47:07.936 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=142] [jobType="add index"] [2024/05/06 09:47:07.937 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.942 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=142] [2024/05/06 09:47:07.943 +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:47:07.945 +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:47:07.948 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=142] [2024/05/06 09:47:07.948 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:07.948 +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:47:07.952 +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:47:07.777 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.952 +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:47:07.955 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:07.955 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:47:07.966 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.966 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.966 +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:47:07.953 +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:47:07.966 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:07.978 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.980 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=191] [neededSchemaVersion=192] ["start time"=452.149µs] [gotSchemaVersion=192] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:07.981 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=192] [2024/05/06 09:47:07.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=192] ["take time"=9.651402ms] [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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:07.991 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.002 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.002 +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:47:07.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.003 +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:47:07.953 +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:47:08.003 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.004 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=143] [2024/05/06 09:47:08.005 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.012 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.012 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.022 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.024 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=192] [neededSchemaVersion=193] ["start time"=420.108µs] [gotSchemaVersion=193] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.026 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=193] [2024/05/06 09:47:08.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=193] ["take time"=8.91082ms] [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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.045 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.053 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.053 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, 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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.054 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.057 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=193] [neededSchemaVersion=194] ["start time"=437.122µs] [gotSchemaVersion=194] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.059 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=143] [version=194] [2024/05/06 09:47:08.062 +00:00] [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"=5.281981ms] [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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.065 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.073 +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:47:08.074 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=143] [jobType="add index"] [2024/05/06 09:47:08.075 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.079 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=143] [2024/05/06 09:47:08.079 +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:47:07.953 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.085 +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:47:08.086 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=143] [2024/05/06 09:47:08.086 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:08.086 +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:47:08.087 +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:47:08.087 +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:47:08.101 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:08.101 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:47:08.117 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.117 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, 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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.118 +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:47:08.088 +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:47:08.118 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:08.118 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.121 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=194] [neededSchemaVersion=195] ["start time"=449.571µs] [gotSchemaVersion=195] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.123 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=195] [2024/05/06 09:47: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=195] ["take time"=4.43711ms] [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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.126 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.134 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.134 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.135 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.138 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=195] [neededSchemaVersion=196] ["start time"=451.005µs] [gotSchemaVersion=196] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.139 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=196] [2024/05/06 09:47:08.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=196] ["take time"=2.23672ms] [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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.140 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.149 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.152 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.156 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.158 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031366291456, conflictStartTS=449574031366291457, conflictCommitTS=449574031366815744, 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:47:08.158 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031366291456, conflictStartTS=449574031366291457, conflictCommitTS=449574031366815744, 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:47:08.158 +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=449574031366291456, conflictStartTS=449574031366291457, conflictCommitTS=449574031366815744, 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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.167 +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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.167 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, 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:47:08.088 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.167 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, 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:47:08.088 +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:47:08.168 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.170 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=196] [neededSchemaVersion=198] ["start time"=489.121µs] [gotSchemaVersion=198] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.172 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=198] [2024/05/06 09:47:08.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=198] ["take time"=4.415568ms] [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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.175 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.185 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.185 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.186 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.189 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=198] [neededSchemaVersion=199] ["start time"=471.736µs] [gotSchemaVersion=199] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.190 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=199] [2024/05/06 09:47:08.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=199] ["take time"=8.747782ms] [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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.202 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.209 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.209 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.211 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.214 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=199] [neededSchemaVersion=200] ["start time"=416.217µs] [gotSchemaVersion=200] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.216 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=144] [version=200] [2024/05/06 09:47:08.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=200] ["take time"=7.11631ms] [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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.222 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.229 +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:47:08.230 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=144] [jobType="add index"] [2024/05/06 09:47:08.231 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, 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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.235 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=144] [2024/05/06 09:47:08.235 +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:47:08.088 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.237 +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:47:08.239 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=144] [2024/05/06 09:47:08.239 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:08.239 +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:47:08.239 +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:47:08.240 +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:47:08.242 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:08.242 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c2(c2)"] [2024/05/06 09:47:08.266 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.266 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.266 +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:47:08.24 +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:47:08.267 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:08.267 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.269 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=200] [neededSchemaVersion=201] ["start time"=430.627µs] [gotSchemaVersion=201] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.271 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=201] [2024/05/06 09:47:08.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=201] ["take time"=2.094113ms] [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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.272 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.286 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.286 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.293 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.302 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=201] [neededSchemaVersion=202] ["start time"=432.605µs] [gotSchemaVersion=202] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.303 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=202] [2024/05/06 09:47:08.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=202] ["take time"=21.782073ms] [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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.324 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.334 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.334 +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:47:08.24 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.335 +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:47:08.24 +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:47:08.336 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.339 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=202] [neededSchemaVersion=203] ["start time"=445.46µs] [gotSchemaVersion=203] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.340 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=203] [2024/05/06 09:47:08.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=203] ["take time"=15.430705ms] [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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.354 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.363 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.363 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.364 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.366 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=203] [neededSchemaVersion=204] ["start time"=396.727µs] [gotSchemaVersion=204] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.367 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=204] [2024/05/06 09:47:08.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=204] ["take time"=2.041144ms] [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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.368 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.375 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.376 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.377 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.382 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=204] [neededSchemaVersion=205] ["start time"=402.661µs] [gotSchemaVersion=205] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.387 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=145] [version=205] [2024/05/06 09:47:08.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=205] ["take time"=9.072515ms] [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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.392 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.399 +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:47:08.401 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=145] [jobType="add index"] [2024/05/06 09:47:08.402 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.404 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=145] [2024/05/06 09:47:08.405 +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:47:08.24 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.406 +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:47:08.408 +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:47:08.410 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=145] [2024/05/06 09:47:08.410 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:08.410 +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:47:08.410 +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:47:08.413 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:08.413 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_cx2(c2)"] [2024/05/06 09:47:08.421 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.421 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.422 +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:47:08.412 +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:47:08.422 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:08.423 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.425 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=205] [neededSchemaVersion=206] ["start time"=426.197µs] [gotSchemaVersion=206] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.427 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=206] [2024/05/06 09:47:08.436 +00:00] [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"=11.533719ms] [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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.437 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.447 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.447 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.448 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.450 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=206] [neededSchemaVersion=207] ["start time"=386.068µs] [gotSchemaVersion=207] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.452 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=207] [2024/05/06 09:47:08.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=207] ["take time"=11.42188ms] [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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.477 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.490 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.490 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.491 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.497 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=207] [neededSchemaVersion=208] ["start time"=451.233µs] [gotSchemaVersion=208] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.499 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=208] [2024/05/06 09:47:08.504 +00:00] [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"=7.555053ms] [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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.505 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.523 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.523 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.524 +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:47:08.525 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=146] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:08.527 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.528 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.529 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.551 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.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:47:08.553 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:23,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:08.554 +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:47:08.554 +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:47:08.554 +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:47:08.566 +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:47:08.566 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.567 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.568 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.575 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.575 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.575 +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:47:08.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:47:08.592 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.594 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.594 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.607 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.607 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.607 +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:47:08.619 +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:47:08.620 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.620 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.621 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.629 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.629 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.629 +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:47:08.644 +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:47:08.644 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.645 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.645 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.653 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.653 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.654 +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:47:08.768 +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"=113.579119ms] [2024/05/06 09:47:08.768 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=146] [2024/05/06 09:47:08.769 +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:47:08.771 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=320] [2024/05/06 09:47:08.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:320, ArgLen:6, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.784 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:08.785 +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:320, ArgLen:6, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.794 +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:320, ArgLen:0, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.794 +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:320, ArgLen:0, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.794 +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:47:08.797 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:08.947 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.962 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=208] [neededSchemaVersion=209] ["start time"=516.002µs] [gotSchemaVersion=209] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.964 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=209] [2024/05/06 09:47:08.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=209] ["take time"=16.23433ms] [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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.969 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.978 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.978 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031464595456, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.979 +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:47:08.987 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:08.992 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=209] [neededSchemaVersion=210] ["start time"=507.913µs] [gotSchemaVersion=210] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:08.993 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=210] [2024/05/06 09:47:08.996 +00:00] [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"=5.50852ms] [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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.005 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.012 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.012 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.013 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=146] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000017] [endKey=74800000000000006f5f69ffff000000000017ff] [2024/05/06 09:47:09.018 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.021 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:09.022 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.028 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.028 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.030 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:23,StartKey:74800000000000006f5f69ffff000000000017,EndKey:74800000000000006f5f69ffff000000000017ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:09.031 +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:47:09.031 +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:47:09.032 +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:47:09.114 +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:47:09.114 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.127 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=146] [2024/05/06 09:47:09.129 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.138 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.138 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.141 +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"=176.075µs] [2024/05/06 09:47:09.141 +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:47:09.141 +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:47:09.141 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:09.217 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:09.217 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.220 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=210] [neededSchemaVersion=211] ["start time"=467.931µs] [gotSchemaVersion=211] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:09.221 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=146] [version=211] [2024/05/06 09:47:09.224 +00:00] [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"=5.1121ms] [job="ID:146, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.227 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.241 +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:47:09.247 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=146] [jobType="add index"] [2024/05/06 09:47:09.248 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.255 +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:47:09.280 +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:47:08.412 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574031592783872, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:09.283 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=146] [2024/05/06 09:47:09.283 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:09.284 +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:47:09.287 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.287 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.300 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.304 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.304 +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:47:09.285 +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:47:09.307 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.308 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031668019200, conflictStartTS=449574031668281345, conflictCommitTS=449574031668543488, 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:47:09.308 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031668019200, conflictStartTS=449574031668281345, conflictCommitTS=449574031668543488, 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:47:09.308 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031668019200, conflictStartTS=449574031668281345, conflictCommitTS=449574031668543488, 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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.314 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.314 +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:47:09.285 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.314 +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:47:09.285 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:09.314 +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:47:09.285 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.315 +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:47:09.285 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.318 +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:47:09.285 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.319 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=147] [2024/05/06 09:47:09.320 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:09.320 +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:47:09.320 +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:47:09.329 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.329 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.337 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.337 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.338 +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:47:09.321 +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:47:09.338 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.341 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=211] [neededSchemaVersion=213] ["start time"=470.921µs] [gotSchemaVersion=213] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.343 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=213] [2024/05/06 09:47:09.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=213] ["take time"=4.017049ms] [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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.349 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.355 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.358 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.359 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.361 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031682437120, conflictStartTS=449574031682699264, conflictCommitTS=449574031682961408, 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:47:09.361 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031682437120, conflictStartTS=449574031682699264, conflictCommitTS=449574031682961408, 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:47:09.361 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031682437120, conflictStartTS=449574031682699264, conflictCommitTS=449574031682961408, 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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.367 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.367 +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:47:09.321 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.367 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:09.367 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.369 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=148] [2024/05/06 09:47:09.369 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.381 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.381 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.382 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.384 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=213] [neededSchemaVersion=215] ["start time"=467.284µs] [gotSchemaVersion=215] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.386 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=215] [2024/05/06 09:47:09.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=215] ["take time"=4.073496ms] [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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.389 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.394 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.394 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.395 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.397 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=215] [neededSchemaVersion=216] ["start time"=477.473µs] [gotSchemaVersion=216] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.399 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=148] [version=216] [2024/05/06 09:47:09.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=216] ["take time"=7.573318ms] [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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.405 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.412 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.425 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=148] [2024/05/06 09:47:09.426 +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:47:09.321 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.429 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=148] [2024/05/06 09:47:09.429 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:09.429 +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:47:09.430 +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:47:09.433 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.433 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.443 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.443 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.444 +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:47:09.432 +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:47:09.446 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.450 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=216] [neededSchemaVersion=217] ["start time"=475.779µs] [gotSchemaVersion=217] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.451 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=217] [2024/05/06 09:47:09.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=217] ["take time"=8.624085ms] [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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.459 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.468 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.468 +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:47:09.432 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.469 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:09.469 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.470 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=149] [2024/05/06 09:47:09.470 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.478 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.478 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.485 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.488 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=217] [neededSchemaVersion=218] ["start time"=552.661µs] [gotSchemaVersion=218] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.490 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=218] [2024/05/06 09:47:09.492 +00:00] [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.153716ms] [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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.493 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.499 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.499 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.500 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.502 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=218] [neededSchemaVersion=219] ["start time"=430.795µs] [gotSchemaVersion=219] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=149] [version=219] [2024/05/06 09:47:09.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=219] ["take time"=3.013293ms] [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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.506 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.516 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.518 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=149] [2024/05/06 09:47:09.519 +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:47:09.432 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.522 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=149] [2024/05/06 09:47:09.522 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:09.522 +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:47:09.522 +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:47:09.526 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.526 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.536 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.536 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.536 +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:47:09.524 +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:47:09.537 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.542 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=219] [neededSchemaVersion=220] ["start time"=465.98µs] [gotSchemaVersion=220] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.543 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=220] [2024/05/06 09:47:09.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=220] ["take time"=2.193729ms] [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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.545 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.549 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.549 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.550 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.552 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=220] [neededSchemaVersion=221] ["start time"=470.178µs] [gotSchemaVersion=221] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.554 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=221] [2024/05/06 09:47:09.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=221] ["take time"=4.264482ms] [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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.567 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.574 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.576 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.577 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.578 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031739846656, conflictStartTS=449574031739846657, conflictCommitTS=449574031740108800, 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:47:09.578 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031739846656, conflictStartTS=449574031739846657, conflictCommitTS=449574031740108800, 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:47:09.578 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031739846656, conflictStartTS=449574031739846657, conflictCommitTS=449574031740108800, 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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.584 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.584 +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:47:09.524 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.585 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:09.585 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.585 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=221] [neededSchemaVersion=222] ["start time"=44.768µs] [gotSchemaVersion=221] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:09.591 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=221] [neededSchemaVersion=223] ["start time"=451.811µs] [gotSchemaVersion=223] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.592 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=223] [2024/05/06 09:47:09.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=223] ["take time"=5.916227ms] [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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.593 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.597 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.598 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.598 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.600 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=223] [neededSchemaVersion=224] ["start time"=379.268µs] [gotSchemaVersion=224] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.602 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=224] [2024/05/06 09:47:09.603 +00:00] [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"=3.055752ms] [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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.605 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.611 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.611 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.612 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.616 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=224] [neededSchemaVersion=225] ["start time"=434.869µs] [gotSchemaVersion=225] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.617 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=150] [version=225] [2024/05/06 09:47:09.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=225] ["take time"=6.57037ms] [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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.623 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.628 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.636 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=150] [2024/05/06 09:47:09.637 +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:47:09.524 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.637 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=150] [2024/05/06 09:47:09.637 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:09.638 +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:47:09.638 +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:47:09.642 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.642 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.672 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.672 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.673 +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:47:09.639 +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:47:09.677 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.679 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=225] [neededSchemaVersion=226] ["start time"=420.262µs] [gotSchemaVersion=226] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.681 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=226] [2024/05/06 09:47:09.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=226] ["take time"=2.836174ms] [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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.686 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.700 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.700 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.707 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.712 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=226] [neededSchemaVersion=227] ["start time"=480.608µs] [gotSchemaVersion=227] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.713 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=227] [2024/05/06 09:47:09.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=227] ["take time"=4.255474ms] [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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.720 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.734 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.734 +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:47:09.639 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.735 +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:47:09.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:47:09.735 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.737 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=227] [neededSchemaVersion=228] ["start time"=474.349µs] [gotSchemaVersion=228] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.740 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=228] [2024/05/06 09:47:09.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=228] ["take time"=4.152537ms] [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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.742 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.762 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.762 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.763 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.765 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=228] [neededSchemaVersion=229] ["start time"=467.769µs] [gotSchemaVersion=229] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.769 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=229] [2024/05/06 09:47:09.772 +00:00] [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"=7.41213ms] [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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.774 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.780 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.780 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.781 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.784 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=229] [neededSchemaVersion=230] ["start time"=423.166µs] [gotSchemaVersion=230] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.786 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=151] [version=230] [2024/05/06 09:47:09.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=230] ["take time"=4.59956ms] [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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.789 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.809 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.813 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=151] [2024/05/06 09:47:09.813 +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:47:09.639 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.816 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=151] [2024/05/06 09:47:09.816 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:09.817 +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:47:09.817 +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:47:09.823 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:09.823 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:09.835 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.835 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.836 +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:47:09.818 +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:47:09.837 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.840 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=230] [neededSchemaVersion=231] ["start time"=431.221µs] [gotSchemaVersion=231] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.841 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=231] [2024/05/06 09:47:09.841 +00:00] [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.25457ms] [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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.842 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.875 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.875 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.877 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.887 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=231] [neededSchemaVersion=232] ["start time"=487.544µs] [gotSchemaVersion=232] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.889 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=232] [2024/05/06 09:47:09.891 +00:00] [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"=4.258372ms] [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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.897 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.902 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.902 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.903 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=232] [neededSchemaVersion=233] ["start time"=435.165µs] [gotSchemaVersion=233] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.909 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=233] [2024/05/06 09:47:09.911 +00:00] [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"=7.069175ms] [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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.912 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.920 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.922 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.923 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.925 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031830548480, conflictStartTS=449574031830548481, conflictCommitTS=449574031831072768, 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:47:09.925 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031830548480, conflictStartTS=449574031830548481, conflictCommitTS=449574031831072768, 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:47:09.925 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031830548480, conflictStartTS=449574031830548481, conflictCommitTS=449574031831072768, 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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.931 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.931 +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:47:09.818 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.936 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:09.936 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.936 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=233] [neededSchemaVersion=234] ["start time"=47.161µs] [gotSchemaVersion=233] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:09.943 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=233] [neededSchemaVersion=235] ["start time"=479.204µs] [gotSchemaVersion=235] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.945 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=235] [2024/05/06 09:47:09.947 +00:00] [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"=4.530871ms] [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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.948 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.953 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.953 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.955 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.958 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=235] [neededSchemaVersion=236] ["start time"=491.791µs] [gotSchemaVersion=236] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.959 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=236] [2024/05/06 09:47:09.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=236] ["take time"=4.057667ms] [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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.962 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.970 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.970 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.971 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.974 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=236] [neededSchemaVersion=237] ["start time"=431.872µs] [gotSchemaVersion=237] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:09.976 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=152] [version=237] [2024/05/06 09:47:09.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=237] ["take time"=5.586758ms] [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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.982 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:09.993 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.001 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=152] [2024/05/06 09:47:10.001 +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:47:09.818 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.004 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=152] [2024/05/06 09:47:10.004 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:10.004 +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:47:10.005 +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:47:10.008 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.008 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:10.032 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.032 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.033 +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:47:10.007 +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:47:10.034 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.037 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=237] [neededSchemaVersion=238] ["start time"=481.423µs] [gotSchemaVersion=238] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.039 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=238] [2024/05/06 09:47:10.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=238] ["take time"=6.592893ms] [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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.044 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.049 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.050 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.051 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.053 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=238] [neededSchemaVersion=239] ["start time"=471.718µs] [gotSchemaVersion=239] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.056 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=239] [2024/05/06 09:47:10.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=239] ["take time"=4.015403ms] [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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.058 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.064 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.064 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.067 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.070 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=239] [neededSchemaVersion=240] ["start time"=469.996µs] [gotSchemaVersion=240] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.072 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=240] [2024/05/06 09:47:10.077 +00:00] [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"=7.098955ms] [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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.078 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.108 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.108 +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:47:10.007 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.109 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:10.109 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.111 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=240] [neededSchemaVersion=241] ["start time"=397.402µs] [gotSchemaVersion=241] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.113 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=241] [2024/05/06 09:47:10.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=241] ["take time"=4.105406ms] [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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.116 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.123 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.123 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.124 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.126 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=241] [neededSchemaVersion=242] ["start time"=424.408µs] [gotSchemaVersion=242] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.128 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=242] [2024/05/06 09:47:10.131 +00:00] [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"=5.174ms] [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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.139 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.151 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.151 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.152 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.155 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=242] [neededSchemaVersion=243] ["start time"=439.291µs] [gotSchemaVersion=243] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.156 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=153] [version=243] [2024/05/06 09:47:10.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=243] ["take time"=4.611479ms] [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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.166 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.173 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.182 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=153] [2024/05/06 09:47:10.183 +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:47:10.007 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.183 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=153] [2024/05/06 09:47:10.184 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:10.184 +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:47:10.184 +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:47:10.192 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.192 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c4 bigint"] [2024/05/06 09:47:10.203 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.203 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.203 +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:47:10.191 +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:47:10.205 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.207 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=243] [neededSchemaVersion=244] ["start time"=502.716µs] [gotSchemaVersion=244] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.209 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=244] [2024/05/06 09:47:10.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=244] ["take time"=8.731566ms] [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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.217 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.224 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.225 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.227 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.230 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=244] [neededSchemaVersion=245] ["start time"=417.54µs] [gotSchemaVersion=245] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.233 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=245] [2024/05/06 09:47:10.233 +00:00] [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.460128ms] [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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.234 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.241 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.241 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.244 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.246 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=245] [neededSchemaVersion=246] ["start time"=461.823µs] [gotSchemaVersion=246] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.248 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=246] [2024/05/06 09:47:10.250 +00:00] [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"=4.387315ms] [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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.251 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.256 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.256 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.259 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.265 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=246] [neededSchemaVersion=247] ["start time"=524.43µs] [gotSchemaVersion=247] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:10.267 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=154] [version=247] [2024/05/06 09:47:10.273 +00:00] [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"=9.141753ms] [job="ID:154, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.275 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.283 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.327 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=154] [2024/05/06 09:47:10.327 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.327 +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:47:10.331 +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:47:10.191 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.358 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.358 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table test_create_table(a int)"] [2024/05/06 09:47:10.367 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.370 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.371 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.389 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031947726848, conflictStartTS=449574031947726850, conflictCommitTS=449574031948251136, 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:47:10.389 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031947726848, conflictStartTS=449574031947726850, conflictCommitTS=449574031948251136, 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:47:10.389 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031947726848, conflictStartTS=449574031947726850, conflictCommitTS=449574031948251136, 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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.397 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.397 +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:47:10.341 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.397 +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:47:10.341 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:10.397 +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:47:10.341 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.398 +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:47:10.341 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.401 +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:47:10.341 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.412 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=156] [2024/05/06 09:47:10.412 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:10.412 +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:47:10.413 +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:47:10.416 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.416 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table test_create_table(a int)"] [2024/05/06 09:47:10.458 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.458 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.461 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.469 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=247] [neededSchemaVersion=249] ["start time"=232.528µs] [gotSchemaVersion=249] [phyTblIDs="[157]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:10.481 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=158] [version=249] [2024/05/06 09:47:10.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=249] ["take time"=14.300227ms] [job="ID:158, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:157, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.484 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.494 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.504 +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:47:10.415 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.507 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=158] [2024/05/06 09:47:10.507 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.508 +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:47:10.511 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.511 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:10.518 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.521 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.522 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.523 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574031987310592, conflictStartTS=449574031987310593, conflictCommitTS=449574031987834880, 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:47:10.523 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574031987310592, conflictStartTS=449574031987310593, conflictCommitTS=449574031987834880, 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:47:10.523 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574031987310592, conflictStartTS=449574031987310593, conflictCommitTS=449574031987834880, 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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.528 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.528 +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:47:10.509 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.528 +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:47:10.509 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:10.528 +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:47:10.509 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.529 +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:47:10.509 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.531 +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:47:10.509 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.532 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=159] [2024/05/06 09:47:10.532 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:10.532 +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:47:10.532 +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:47:10.533 +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:47:10.535 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.535 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:10.546 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.546 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.547 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.551 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=249] [neededSchemaVersion=251] ["start time"=160.639µs] [gotSchemaVersion=251] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.553 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=251] [2024/05/06 09:47:10.559 +00:00] [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"=8.303803ms] [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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.560 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.580 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.581 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.582 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.583 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=251] [neededSchemaVersion=252] ["start time"=35.969µs] [gotSchemaVersion=252] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.585 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=252] [2024/05/06 09:47:10.585 +00:00] [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"=2.297639ms] [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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.587 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.592 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.592 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.593 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.595 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=252] [neededSchemaVersion=253] ["start time"=56.01µs] [gotSchemaVersion=253] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.596 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=160] [version=253] [2024/05/06 09:47:10.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=253] ["take time"=13.385331ms] [job="ID:160, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:157, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.619 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.632 +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:47:10.633 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=160] [jobType="drop table"] [2024/05/06 09:47:10.634 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.636 +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:47:10.534 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.637 +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:47:10.639 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=160] [2024/05/06 09:47:10.639 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.639 +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:47:10.643 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.643 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:47:10.653 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.653 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.654 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.656 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=253] [neededSchemaVersion=254] ["start time"=182.34µs] [gotSchemaVersion=254] [phyTblIDs="[161]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:10.658 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=162] [version=254] [2024/05/06 09:47:10.664 +00:00] [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"=8.136496ms] [job="ID:162, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:161, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.665 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.681 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.684 +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:47:10.641 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.687 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=162] [2024/05/06 09:47:10.687 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.687 +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:47:10.697 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.697 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:10.706 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.706 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.709 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.711 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=254] [neededSchemaVersion=255] ["start time"=105.095µs] [gotSchemaVersion=255] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.712 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=255] [2024/05/06 09:47:10.716 +00:00] [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"=5.43297ms] [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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.718 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.727 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.728 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.734 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.743 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=255] [neededSchemaVersion=256] ["start time"=69.715µs] [gotSchemaVersion=256] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.744 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=256] [2024/05/06 09:47:10.749 +00:00] [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"=6.471086ms] [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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.750 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.757 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.757 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.757 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.760 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=256] [neededSchemaVersion=257] ["start time"=62.753µs] [gotSchemaVersion=257] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.761 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=163] [version=257] [2024/05/06 09:47:10.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=257] ["take time"=2.359099ms] [job="ID:163, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:161, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.763 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.770 +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:47:10.774 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=163] [jobType="drop table"] [2024/05/06 09:47:10.775 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.780 +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:47:10.781 +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:47:10.688 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.785 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=163] [2024/05/06 09:47:10.785 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.786 +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:47:10.793 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.793 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:47:10.803 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.803 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.805 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.807 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=257] [neededSchemaVersion=258] ["start time"=237.719µs] [gotSchemaVersion=258] [phyTblIDs="[164]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:10.808 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=165] [version=258] [2024/05/06 09:47:10.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=258] ["take time"=3.213843ms] [job="ID:165, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:164, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.820 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.828 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.837 +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:47:10.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.838 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=165] [2024/05/06 09:47:10.838 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.844 +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:47:10.846 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.846 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:10.853 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.853 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.854 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.856 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=258] [neededSchemaVersion=259] ["start time"=133.735µs] [gotSchemaVersion=259] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.857 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=259] [2024/05/06 09:47:10.858 +00:00] [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.673895ms] [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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.864 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.870 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.870 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.872 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.874 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=259] [neededSchemaVersion=260] ["start time"=54.306µs] [gotSchemaVersion=260] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.875 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=260] [2024/05/06 09:47:10.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=260] ["take time"=14.69282ms] [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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.891 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.905 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.906 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.907 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.908 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=260] [neededSchemaVersion=261] ["start time"=61.357µs] [gotSchemaVersion=261] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:10.910 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=166] [version=261] [2024/05/06 09:47:10.911 +00:00] [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"=3.137061ms] [job="ID:166, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:164, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.914 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.921 +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:47:10.922 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=166] [jobType="drop table"] [2024/05/06 09:47:10.922 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.938 +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:47:10.944 +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:47:10.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.950 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=166] [2024/05/06 09:47:10.950 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.950 +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:47:10.954 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.954 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:47:10.963 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.963 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.965 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.967 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=261] [neededSchemaVersion=262] ["start time"=234.166µs] [gotSchemaVersion=262] [phyTblIDs="[167]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:10.968 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=168] [version=262] [2024/05/06 09:47:10.970 +00:00] [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"=3.207278ms] [job="ID:168, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:167, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.971 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.979 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.990 +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:47:10.953 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:10.990 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=168] [2024/05/06 09:47:10.991 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:10.991 +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:47:10.997 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:10.997 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:11.006 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.006 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.007 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.009 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=262] [neededSchemaVersion=263] ["start time"=93.659µs] [gotSchemaVersion=263] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.010 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=263] [2024/05/06 09:47:11.011 +00:00] [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.129817ms] [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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.012 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.019 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.019 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.019 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.021 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=263] [neededSchemaVersion=264] ["start time"=44.949µs] [gotSchemaVersion=264] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.023 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=264] [2024/05/06 09:47:11.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=264] ["take time"=12.075386ms] [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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.044 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.051 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.051 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.052 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.054 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=264] [neededSchemaVersion=265] ["start time"=47.59µs] [gotSchemaVersion=265] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.056 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=169] [version=265] [2024/05/06 09:47:11.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=265] ["take time"=13.116453ms] [job="ID:169, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:167, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.068 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.073 +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:47:11.075 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=169] [jobType="drop table"] [2024/05/06 09:47:11.075 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.088 +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:47:10.992 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.090 +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:47:11.091 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=169] [2024/05/06 09:47:11.091 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.092 +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:47:11.095 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.095 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table if not exists test_create_table(a int)"] [2024/05/06 09:47:11.107 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.107 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.108 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.110 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=265] [neededSchemaVersion=266] ["start time"=246.917µs] [gotSchemaVersion=266] [phyTblIDs="[170]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:11.112 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=171] [version=266] [2024/05/06 09:47:11.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=266] ["take time"=5.427417ms] [job="ID:171, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:170, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.116 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.125 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.129 +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:47:11.093 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.130 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=171] [2024/05/06 09:47:11.130 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.130 +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:47:11.149 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.149 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop table test_create_table"] [2024/05/06 09:47:11.157 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.157 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.159 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.164 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=266] [neededSchemaVersion=267] ["start time"=96.048µs] [gotSchemaVersion=267] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.166 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=267] [2024/05/06 09:47:11.167 +00:00] [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"=2.969439ms] [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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.169 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.174 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.174 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.174 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.176 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=267] [neededSchemaVersion=268] ["start time"=46.083µs] [gotSchemaVersion=268] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.178 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=268] [2024/05/06 09:47:11.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=268] ["take time"=2.636275ms] [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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.180 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.192 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.192 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.203 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.206 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=268] [neededSchemaVersion=269] ["start time"=58.633µs] [gotSchemaVersion=269] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop table\"]"] [2024/05/06 09:47:11.208 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=172] [version=269] [2024/05/06 09:47:11.217 +00:00] [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"=10.867305ms] [job="ID:172, Type:drop table, State:done, SchemaState:none, SchemaID:2, TableID:170, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.223 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.229 +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:47:11.233 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=172] [jobType="drop table"] [2024/05/06 09:47:11.234 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.248 +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:47:11.132 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.249 +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:47:11.252 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=172] [2024/05/06 09:47:11.252 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.252 +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:47:11.256 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.256 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_create_db"] [2024/05/06 09:47:11.265 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.268 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.268 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.270 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574032183132160, conflictStartTS=449574032183394304, conflictCommitTS=449574032183656448, 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:47:11.270 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574032183132160, conflictStartTS=449574032183394304, conflictCommitTS=449574032183656448, 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:47:11.270 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574032183132160, conflictStartTS=449574032183394304, conflictCommitTS=449574032183656448, 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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.275 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.275 +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:47:11.255 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.275 +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:47:11.255 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:11.275 +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:47:11.255 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.276 +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:47:11.255 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.279 +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:47:11.255 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.280 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=174] [2024/05/06 09:47:11.280 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:11.280 +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:47:11.280 +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:47:11.286 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.286 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database test_create_db"] [2024/05/06 09:47:11.295 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.295 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.296 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.298 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=269] [neededSchemaVersion=271] ["start time"=104.784µs] [gotSchemaVersion=271] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:11.299 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=176] [version=271] [2024/05/06 09:47:11.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=271] ["take time"=2.074576ms] [job="ID:176, Type:create schema, State:done, SchemaState:public, SchemaID:175, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.300 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.308 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.312 +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:47:11.282 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.314 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=176] [2024/05/06 09:47:11.314 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.315 +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:47:11.318 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.318 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:11.332 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.354 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.355 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.356 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574032200695808, conflictStartTS=449574032200695809, conflictCommitTS=449574032200957952, 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:47:11.356 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574032200695808, conflictStartTS=449574032200695809, conflictCommitTS=449574032200957952, 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:47:11.356 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574032200695808, conflictStartTS=449574032200695809, conflictCommitTS=449574032200957952, 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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.365 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.365 +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:47:11.316 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.365 +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:47:11.316 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:11.365 +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:47:11.316 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.366 +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:47:11.316 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.370 +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:47:11.316 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.372 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=177] [2024/05/06 09:47:11.372 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:11.373 +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:47:11.373 +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:47:11.373 +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:47:11.390 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.390 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:11.404 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.404 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.404 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.406 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=271] [neededSchemaVersion=273] ["start time"=147.176µs] [gotSchemaVersion=273] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.408 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=273] [2024/05/06 09:47:11.410 +00:00] [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"=4.209404ms] [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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.412 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.419 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.420 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.422 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.423 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=273] [neededSchemaVersion=274] ["start time"=38.597µs] [gotSchemaVersion=274] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.426 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=274] [2024/05/06 09:47:11.427 +00:00] [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.188986ms] [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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.428 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.434 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.434 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.434 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.435 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=274] [neededSchemaVersion=275] ["start time"=22.762µs] [gotSchemaVersion=275] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.437 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=178] [version=275] [2024/05/06 09:47:11.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=275] ["take time"=2.007422ms] [job="ID:178, Type:drop schema, State:done, SchemaState:none, SchemaID:175, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.438 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.443 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=178] [jobType="drop schema"] [2024/05/06 09:47:11.443 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.448 +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:47:11.388 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.454 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=178] [2024/05/06 09:47:11.454 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.455 +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:47:11.457 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.457 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:47:11.463 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.463 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.463 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.473 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=275] [neededSchemaVersion=276] ["start time"=78.918µs] [gotSchemaVersion=276] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:11.476 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=180] [version=276] [2024/05/06 09:47:11.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=276] ["take time"=4.030508ms] [job="ID:180, Type:create schema, State:done, SchemaState:public, SchemaID:179, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.484 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.494 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.504 +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:47:11.456 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.504 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=180] [2024/05/06 09:47:11.505 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.505 +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:47:11.508 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.508 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:11.516 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.516 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.518 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.520 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=276] [neededSchemaVersion=277] ["start time"=128.49µs] [gotSchemaVersion=277] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.521 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=277] [2024/05/06 09:47:11.533 +00:00] [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"=13.492177ms] [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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.534 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.541 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.541 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.543 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.544 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=277] [neededSchemaVersion=278] ["start time"=33.846µs] [gotSchemaVersion=278] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.546 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=278] [2024/05/06 09:47:11.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=278] ["take time"=2.332793ms] [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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.547 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.552 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.552 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.552 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.554 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=278] [neededSchemaVersion=279] ["start time"=31.04µs] [gotSchemaVersion=279] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.555 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=181] [version=279] [2024/05/06 09:47:11.557 +00:00] [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.771004ms] [job="ID:181, Type:drop schema, State:done, SchemaState:none, SchemaID:179, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.558 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.589 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=181] [jobType="drop schema"] [2024/05/06 09:47:11.589 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.594 +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:47:11.507 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.596 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=181] [2024/05/06 09:47:11.596 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.597 +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:47:11.600 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.600 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:47:11.632 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.632 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.633 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.635 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=279] [neededSchemaVersion=280] ["start time"=73.205µs] [gotSchemaVersion=280] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:11.636 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=183] [version=280] [2024/05/06 09:47:11.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=280] ["take time"=2.117462ms] [job="ID:183, Type:create schema, State:done, SchemaState:public, SchemaID:182, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.637 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.645 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.648 +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:47:11.598 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.648 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=183] [2024/05/06 09:47:11.648 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.649 +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:47:11.666 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.666 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:11.685 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.685 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.694 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.696 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=280] [neededSchemaVersion=281] ["start time"=122.214µs] [gotSchemaVersion=281] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=281] [2024/05/06 09:47:11.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=281] ["take time"=4.84717ms] [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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.705 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.725 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.725 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.728 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.730 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=281] [neededSchemaVersion=282] ["start time"=49.646µs] [gotSchemaVersion=282] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.732 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=282] [2024/05/06 09:47:11.732 +00:00] [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"=2.157213ms] [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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.733 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.754 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.756 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.758 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.764 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=282] [neededSchemaVersion=283] ["start time"=56.495µs] [gotSchemaVersion=283] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.766 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=184] [version=283] [2024/05/06 09:47:11.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=283] ["take time"=4.059408ms] [job="ID:184, Type:drop schema, State:done, SchemaState:none, SchemaID:182, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.775 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.781 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=184] [jobType="drop schema"] [2024/05/06 09:47:11.781 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.786 +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:47:11.65 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.789 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=184] [2024/05/06 09:47:11.789 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.789 +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:47:11.795 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.795 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:47:11.803 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.803 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.807 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.813 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=283] [neededSchemaVersion=284] ["start time"=91.365µs] [gotSchemaVersion=284] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:11.814 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=186] [version=284] [2024/05/06 09:47:11.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=284] ["take time"=26.213031ms] [job="ID:186, Type:create schema, State:done, SchemaState:public, SchemaID:185, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.840 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.847 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.851 +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:47:11.794 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.853 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=186] [2024/05/06 09:47:11.853 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.854 +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:47:11.861 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.861 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:11.874 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.874 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.875 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.877 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=284] [neededSchemaVersion=285] ["start time"=129.7µs] [gotSchemaVersion=285] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.880 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=285] [2024/05/06 09:47:11.881 +00:00] [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.011577ms] [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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.882 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.894 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.894 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.899 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=285] [neededSchemaVersion=286] ["start time"=55.844µs] [gotSchemaVersion=286] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.907 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=286] [2024/05/06 09:47:11.907 +00:00] [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"=2.011232ms] [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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.910 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.917 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.917 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.920 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.922 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=286] [neededSchemaVersion=287] ["start time"=57.819µs] [gotSchemaVersion=287] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:11.924 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=187] [version=287] [2024/05/06 09:47:11.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=287] ["take time"=2.081816ms] [job="ID:187, Type:drop schema, State:done, SchemaState:none, SchemaID:185, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.925 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.931 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=187] [jobType="drop schema"] [2024/05/06 09:47:11.932 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.936 +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:47:11.855 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.940 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=187] [2024/05/06 09:47:11.940 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.940 +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:47:11.947 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.947 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database if not exists test_create_db"] [2024/05/06 09:47:11.958 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.958 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.959 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.961 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=287] [neededSchemaVersion=288] ["start time"=105.699µs] [gotSchemaVersion=288] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:11.963 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=189] [version=288] [2024/05/06 09:47:11.966 +00:00] [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"=5.688905ms] [job="ID:189, Type:create schema, State:done, SchemaState:public, SchemaID:188, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.967 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.975 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.979 +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:47:11.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:11.981 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=189] [2024/05/06 09:47:11.981 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:11.982 +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:47:11.987 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:11.987 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="drop database test_create_db"] [2024/05/06 09:47:12.001 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.001 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.002 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.003 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=288] [neededSchemaVersion=289] ["start time"=115.903µs] [gotSchemaVersion=289] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:12.005 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=289] [2024/05/06 09:47:12.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=289] ["take time"=2.125593ms] [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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.006 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.017 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.017 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.018 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.020 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=289] [neededSchemaVersion=290] ["start time"=67.147µs] [gotSchemaVersion=290] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:12.021 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=290] [2024/05/06 09:47:12.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=290] ["take time"=4.125177ms] [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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.025 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.031 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.031 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.035 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.037 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=290] [neededSchemaVersion=291] ["start time"=46.41µs] [gotSchemaVersion=291] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"drop schema\"]"] [2024/05/06 09:47:12.039 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=190] [version=291] [2024/05/06 09:47:12.047 +00:00] [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"=9.515721ms] [job="ID:190, Type:drop schema, State:done, SchemaState:none, SchemaID:188, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.050 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.063 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=190] [jobType="drop schema"] [2024/05/06 09:47:12.063 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.068 +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:47:11.983 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.071 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=190] [2024/05/06 09:47:12.071 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.072 +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:47:12.076 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.076 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:12.095 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.098 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.098 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.100 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574032400711680, conflictStartTS=449574032400711681, conflictCommitTS=449574032401235968, 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:47:12.100 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574032400711680, conflictStartTS=449574032400711681, conflictCommitTS=449574032401235968, 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:47:12.100 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574032400711680, conflictStartTS=449574032400711681, conflictCommitTS=449574032401235968, 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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.110 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.110 +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:47:12.074 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.110 +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:47:12.074 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:12.110 +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:47:12.074 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.111 +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:47:12.074 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.114 +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:47:12.074 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.115 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=191] [2024/05/06 09:47:12.115 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:12.115 +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:47:12.115 +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:47:12.118 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.118 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:12.127 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.127 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.128 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.131 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=291] [neededSchemaVersion=293] ["start time"=481.954µs] [gotSchemaVersion=293] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.133 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=293] [2024/05/06 09:47:12.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=293] ["take time"=4.750542ms] [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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.136 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.146 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.146 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.147 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.149 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=293] [neededSchemaVersion=294] ["start time"=472.483µs] [gotSchemaVersion=294] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.151 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=294] [2024/05/06 09:47:12.153 +00:00] [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"=4.215666ms] [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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.156 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.161 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.163 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.163 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.166 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=294] [neededSchemaVersion=295] ["start time"=415.878µs] [gotSchemaVersion=295] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.167 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=295] [2024/05/06 09:47:12.167 +00:00] [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.053033ms] [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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.188 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.194 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.195 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.195 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.198 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=295] [neededSchemaVersion=296] ["start time"=408.709µs] [gotSchemaVersion=296] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.199 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=192] [version=296] [2024/05/06 09:47:12.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=296] ["take time"=9.624679ms] [job="ID:192, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.208 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.213 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=192] [jobType="drop column"] [2024/05/06 09:47:12.214 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.222 +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:47:12.117 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.225 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=192] [2024/05/06 09:47:12.225 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.226 +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:47:12.232 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.232 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:12.237 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.237 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.237 +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:47:12.227 +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:47:12.238 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.240 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=296] [neededSchemaVersion=297] ["start time"=418.091µs] [gotSchemaVersion=297] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.243 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=297] [2024/05/06 09:47:12.244 +00:00] [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"=4.17266ms] [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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.245 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.257 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.257 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.260 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.262 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=297] [neededSchemaVersion=298] ["start time"=424.493µs] [gotSchemaVersion=298] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.264 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=298] [2024/05/06 09:47:12.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=298] ["take time"=9.412926ms] [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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.273 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.279 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.279 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.280 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.283 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=298] [neededSchemaVersion=299] ["start time"=592.595µs] [gotSchemaVersion=299] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.286 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=299] [2024/05/06 09:47:12.289 +00:00] [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"=6.129663ms] [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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.290 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.295 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.295 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.296 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.298 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=299] [neededSchemaVersion=300] ["start time"=446.249µs] [gotSchemaVersion=300] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.300 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=193] [version=300] [2024/05/06 09:47:12.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=300] ["take time"=4.631208ms] [job="ID:193, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.304 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.311 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.317 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=193] [2024/05/06 09:47:12.317 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.318 +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:47:12.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.319 +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:47:12.322 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.322 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:12.340 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.340 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.341 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.343 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=300] [neededSchemaVersion=301] ["start time"=916.538µs] [gotSchemaVersion=301] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.345 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=301] [2024/05/06 09:47:12.347 +00:00] [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.397292ms] [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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.348 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.360 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.360 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.371 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.373 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=301] [neededSchemaVersion=302] ["start time"=423.259µs] [gotSchemaVersion=302] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.375 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=302] [2024/05/06 09:47:12.377 +00:00] [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"=4.329692ms] [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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.385 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.396 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.396 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.405 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.407 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=302] [neededSchemaVersion=303] ["start time"=436.352µs] [gotSchemaVersion=303] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.409 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=303] [2024/05/06 09:47:12.409 +00:00] [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.363237ms] [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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.410 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.415 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.416 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.420 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.423 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=303] [neededSchemaVersion=304] ["start time"=375.744µs] [gotSchemaVersion=304] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.424 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=194] [version=304] [2024/05/06 09:47:12.425 +00:00] [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.110583ms] [job="ID:194, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.425 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.434 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=194] [jobType="drop column"] [2024/05/06 09:47:12.434 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.444 +00:00] [INFO] [mvcc.go:1246] ["trying to commit with smaller commitTs than minCommitTs"] ["commit ts"=449574032490102784] ["min commit ts"=449574032490627073] [key=bURETEpvYkhp/3N0b3J5AAAA/AAAAAAAAABoAAAAAAAAAML/AAAAAAAAAAD3] [2024/05/06 09:47:12.444 +00:00] [INFO] [commit.go:160] ["2PC commitTS rejected by TiKV, retry with a newer commitTS"] [txnStartTS=449574032489578496] [info="{StartTs:449574032489578496 AttemptedCommitTs:449574032490102784 Key:6d44444c4a6f624869ff73746f7279000000fc000000000000006800000000000000c2ff0000000000000000f7 MinCommitTs:449574032490627073}"] [2024/05/06 09:47:12.447 +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:47:12.32 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.454 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=194] [2024/05/06 09:47:12.454 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.455 +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:47:12.472 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.472 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:12.490 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.490 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.490 +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:47:12.463 +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:47:12.491 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.494 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=304] [neededSchemaVersion=305] ["start time"=465.287µs] [gotSchemaVersion=305] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.495 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=305] [2024/05/06 09:47:12.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=305] ["take time"=12.168234ms] [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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.507 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.522 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.522 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.525 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.528 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=305] [neededSchemaVersion=306] ["start time"=491.421µs] [gotSchemaVersion=306] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.534 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=306] [2024/05/06 09:47:12.536 +00:00] [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"=8.741205ms] [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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.537 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.546 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.546 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.547 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.550 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=306] [neededSchemaVersion=307] ["start time"=560.184µs] [gotSchemaVersion=307] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.552 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=307] [2024/05/06 09:47:12.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=307] ["take time"=4.217132ms] [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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.555 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.564 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.564 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.565 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.568 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=307] [neededSchemaVersion=308] ["start time"=398.678µs] [gotSchemaVersion=308] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.570 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=195] [version=308] [2024/05/06 09:47:12.570 +00:00] [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"=2.194679ms] [job="ID:195, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.571 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.577 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.581 +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:47:12.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.582 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=195] [2024/05/06 09:47:12.582 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.582 +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:47:12.585 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.585 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:12.600 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.600 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.603 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.606 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=308] [neededSchemaVersion=309] ["start time"=494.352µs] [gotSchemaVersion=309] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.607 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=309] [2024/05/06 09:47:12.611 +00:00] [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"=6.299755ms] [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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.613 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.623 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.624 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.626 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.628 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=309] [neededSchemaVersion=310] ["start time"=469.988µs] [gotSchemaVersion=310] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.630 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=310] [2024/05/06 09:47:12.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=310] ["take time"=4.515182ms] [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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.634 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.644 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.644 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.645 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.647 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=310] [neededSchemaVersion=311] ["start time"=447.905µs] [gotSchemaVersion=311] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.648 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=311] [2024/05/06 09:47:12.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=311] ["take time"=11.810229ms] [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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.659 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.665 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.666 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.667 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.670 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=311] [neededSchemaVersion=312] ["start time"=396.083µs] [gotSchemaVersion=312] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.671 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=196] [version=312] [2024/05/06 09:47:12.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=312] ["take time"=12.375452ms] [job="ID:196, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.690 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.696 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=196] [jobType="drop column"] [2024/05/06 09:47:12.696 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.703 +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:47:12.584 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.708 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=196] [2024/05/06 09:47:12.708 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.708 +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:47:12.711 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.711 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:12.718 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.718 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.718 +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:47:12.709 +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:47:12.719 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.721 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=312] [neededSchemaVersion=313] ["start time"=455.602µs] [gotSchemaVersion=313] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.723 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=313] [2024/05/06 09:47:12.726 +00:00] [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"=4.848292ms] [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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.730 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.736 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.736 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.742 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.743 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=313] [neededSchemaVersion=314] ["start time"=300.317µs] [gotSchemaVersion=314] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.745 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=314] [2024/05/06 09:47:12.747 +00:00] [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.317054ms] [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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.759 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.765 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.765 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.766 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.768 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=314] [neededSchemaVersion=315] ["start time"=453.765µs] [gotSchemaVersion=315] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.771 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=315] [2024/05/06 09:47:12.789 +00:00] [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"=21.356226ms] [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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.790 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.814 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.814 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.815 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.820 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=315] [neededSchemaVersion=316] ["start time"=460.978µs] [gotSchemaVersion=316] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.822 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=197] [version=316] [2024/05/06 09:47:12.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=316] ["take time"=5.409391ms] [job="ID:197, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.826 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.838 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.841 +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:47:12.709 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.843 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=197] [2024/05/06 09:47:12.843 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.844 +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:47:12.852 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.852 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:12.861 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.861 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.862 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.864 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=316] [neededSchemaVersion=317] ["start time"=399.405µs] [gotSchemaVersion=317] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.866 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=317] [2024/05/06 09:47:12.866 +00:00] [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"=2.024167ms] [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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.867 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.875 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.875 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.877 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.883 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=317] [neededSchemaVersion=318] ["start time"=444.232µs] [gotSchemaVersion=318] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.885 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=318] [2024/05/06 09:47:12.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=318] ["take time"=2.418177ms] [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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.886 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.892 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.892 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.893 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.895 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=318] [neededSchemaVersion=319] ["start time"=431.214µs] [gotSchemaVersion=319] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.896 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=319] [2024/05/06 09:47:12.896 +00:00] [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"=2.043297ms] [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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.897 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.901 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.901 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.902 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=319] [neededSchemaVersion=320] ["start time"=423.691µs] [gotSchemaVersion=320] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:12.914 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=198] [version=320] [2024/05/06 09:47:12.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=320] ["take time"=12.971418ms] [job="ID:198, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.918 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.926 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=198] [jobType="drop column"] [2024/05/06 09:47:12.927 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.934 +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:47:12.845 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.937 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=198] [2024/05/06 09:47:12.937 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:12.938 +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:47:12.940 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:12.940 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:12.972 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.972 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.973 +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:47:12.939 +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:47:12.974 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.977 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=320] [neededSchemaVersion=321] ["start time"=462.529µs] [gotSchemaVersion=321] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:12.979 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=321] [2024/05/06 09:47:12.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=321] ["take time"=4.946458ms] [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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.983 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.994 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.994 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.995 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:12.997 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=321] [neededSchemaVersion=322] ["start time"=422.156µs] [gotSchemaVersion=322] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.002 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=322] [2024/05/06 09:47:13.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=322] ["take time"=6.010494ms] [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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.004 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.023 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.023 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.028 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.041 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=322] [neededSchemaVersion=323] ["start time"=491.805µs] [gotSchemaVersion=323] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.044 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=323] [2024/05/06 09:47:13.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=323] ["take time"=4.207405ms] [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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.046 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.057 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.057 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.058 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.064 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=323] [neededSchemaVersion=324] ["start time"=483.67µs] [gotSchemaVersion=324] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.066 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=199] [version=324] [2024/05/06 09:47:13.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=324] ["take time"=5.970014ms] [job="ID:199, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.071 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.078 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.081 +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:47:12.939 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.081 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=199] [2024/05/06 09:47:13.081 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.082 +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:47:13.084 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.084 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:13.092 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.092 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.093 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.097 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=324] [neededSchemaVersion=325] ["start time"=490.663µs] [gotSchemaVersion=325] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.099 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=325] [2024/05/06 09:47:13.100 +00:00] [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"=4.05955ms] [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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.101 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.109 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.109 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.110 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.112 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=325] [neededSchemaVersion=326] ["start time"=471.224µs] [gotSchemaVersion=326] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.115 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=326] [2024/05/06 09:47:13.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=326] ["take time"=4.83406ms] [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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.118 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.124 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.124 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.125 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.126 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=326] [neededSchemaVersion=327] ["start time"=396.533µs] [gotSchemaVersion=327] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.128 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=327] [2024/05/06 09:47:13.130 +00:00] [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.04194ms] [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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.135 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.144 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.147 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.154 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.157 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=327] [neededSchemaVersion=328] ["start time"=405.45µs] [gotSchemaVersion=328] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.158 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=200] [version=328] [2024/05/06 09:47:13.158 +00:00] [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"=2.040093ms] [job="ID:200, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.159 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.165 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=200] [jobType="drop column"] [2024/05/06 09:47:13.166 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.193 +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:47:13.083 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.197 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=200] [2024/05/06 09:47:13.197 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.198 +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:47:13.200 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.200 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:13.208 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.208 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.209 +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:47:13.199 +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:47:13.210 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.212 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=328] [neededSchemaVersion=329] ["start time"=409.659µs] [gotSchemaVersion=329] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.213 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=329] [2024/05/06 09:47:13.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=329] ["take time"=11.582764ms] [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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.224 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.230 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.230 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.231 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.241 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=329] [neededSchemaVersion=330] ["start time"=455.607µs] [gotSchemaVersion=330] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.248 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=330] [2024/05/06 09:47:13.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=330] ["take time"=16.217208ms] [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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.253 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.259 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.259 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.260 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.262 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=330] [neededSchemaVersion=331] ["start time"=414.888µs] [gotSchemaVersion=331] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.263 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=331] [2024/05/06 09:47:13.265 +00:00] [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"=3.624492ms] [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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.267 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.272 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.272 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.273 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.276 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=331] [neededSchemaVersion=332] ["start time"=496.4µs] [gotSchemaVersion=332] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.277 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=201] [version=332] [2024/05/06 09:47:13.279 +00:00] [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"=3.870025ms] [job="ID:201, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.285 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.291 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.294 +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:47:13.199 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.294 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=201] [2024/05/06 09:47:13.294 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.295 +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:47:13.305 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.305 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:13.315 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.315 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.318 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.321 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=332] [neededSchemaVersion=333] ["start time"=476.477µs] [gotSchemaVersion=333] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.323 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=333] [2024/05/06 09:47:13.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=333] ["take time"=6.315027ms] [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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.330 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.340 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.340 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.341 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.348 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=333] [neededSchemaVersion=334] ["start time"=423.768µs] [gotSchemaVersion=334] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=334] [2024/05/06 09:47:13.350 +00:00] [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"=2.047737ms] [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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.351 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.356 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.356 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.357 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.359 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=334] [neededSchemaVersion=335] ["start time"=408.81µs] [gotSchemaVersion=335] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.360 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=335] [2024/05/06 09:47:13.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=335] ["take time"=4.099932ms] [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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.363 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.370 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.370 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.372 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.374 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=335] [neededSchemaVersion=336] ["start time"=455.338µs] [gotSchemaVersion=336] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.376 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=202] [version=336] [2024/05/06 09:47:13.386 +00:00] [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"=12.049702ms] [job="ID:202, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.389 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.394 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=202] [jobType="drop column"] [2024/05/06 09:47:13.394 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.397 +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:47:13.296 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.402 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=202] [2024/05/06 09:47:13.402 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.403 +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:47:13.405 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.405 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:13.412 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.412 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.413 +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:47:13.404 +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:47:13.414 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.416 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=336] [neededSchemaVersion=337] ["start time"=414.889µs] [gotSchemaVersion=337] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.417 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=337] [2024/05/06 09:47:13.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=337] ["take time"=2.011413ms] [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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.421 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.427 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.427 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.430 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.434 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=337] [neededSchemaVersion=338] ["start time"=436.116µs] [gotSchemaVersion=338] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.435 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=338] [2024/05/06 09:47:13.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=338] ["take time"=4.234313ms] [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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.438 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.443 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.443 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.444 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.446 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=338] [neededSchemaVersion=339] ["start time"=410.493µs] [gotSchemaVersion=339] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.447 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=339] [2024/05/06 09:47:13.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=339] ["take time"=4.710081ms] [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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.451 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.456 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.456 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.461 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.474 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=339] [neededSchemaVersion=340] ["start time"=454.94µs] [gotSchemaVersion=340] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.475 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=203] [version=340] [2024/05/06 09:47:13.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=340] ["take time"=5.327553ms] [job="ID:203, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.485 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.491 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.495 +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:47:13.404 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.495 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=203] [2024/05/06 09:47:13.495 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.496 +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:47:13.498 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.498 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:13.506 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.506 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.507 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.509 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=340] [neededSchemaVersion=341] ["start time"=441.228µs] [gotSchemaVersion=341] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.511 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=341] [2024/05/06 09:47:13.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=341] ["take time"=4.313784ms] [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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.520 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.532 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.532 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.536 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.542 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=341] [neededSchemaVersion=342] ["start time"=404.999µs] [gotSchemaVersion=342] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.543 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=342] [2024/05/06 09:47:13.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=342] ["take time"=2.069814ms] [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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.544 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.549 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.549 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.561 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.563 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=342] [neededSchemaVersion=343] ["start time"=419.486µs] [gotSchemaVersion=343] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.565 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=343] [2024/05/06 09:47:13.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=343] ["take time"=23.893702ms] [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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.588 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.597 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.597 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.599 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.602 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=343] [neededSchemaVersion=344] ["start time"=404.512µs] [gotSchemaVersion=344] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:13.603 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=204] [version=344] [2024/05/06 09:47:13.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=344] ["take time"=5.046115ms] [job="ID:204, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.607 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.619 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=204] [jobType="drop column"] [2024/05/06 09:47:13.619 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.622 +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:47:13.497 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.627 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=204] [2024/05/06 09:47:13.627 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.627 +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:47:13.630 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:13.630 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:13.641 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.641 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.642 +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:47:13.629 +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:47:13.645 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.657 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=344] [neededSchemaVersion=345] ["start time"=426.54µs] [gotSchemaVersion=345] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.658 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=345] [2024/05/06 09:47:13.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=345] ["take time"=6.177228ms] [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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.663 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.667 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.668 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.668 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.670 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=345] [neededSchemaVersion=346] ["start time"=414.006µs] [gotSchemaVersion=346] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.672 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=346] [2024/05/06 09:47:13.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=346] ["take time"=2.356033ms] [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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.675 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.680 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.680 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.681 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.683 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=346] [neededSchemaVersion=347] ["start time"=432.894µs] [gotSchemaVersion=347] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.684 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=347] [2024/05/06 09:47:13.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=347] ["take time"=2.326863ms] [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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.698 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.703 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.703 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.704 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.710 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=347] [neededSchemaVersion=348] ["start time"=451.48µs] [gotSchemaVersion=348] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:13.712 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=205] [version=348] [2024/05/06 09:47:13.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=348] ["take time"=20.426187ms] [job="ID:205, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.734 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.738 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.743 +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:47:13.629 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:13.743 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=205] [2024/05/06 09:47:13.743 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:13.744 +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:47:13.750 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:13.750 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:13.756 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.756 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.756 +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:47:13.745 +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:47:13.756 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:13.757 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.759 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=348] [neededSchemaVersion=349] ["start time"=484.416µs] [gotSchemaVersion=349] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:13.761 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=349] [2024/05/06 09:47:13.763 +00:00] [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.2235ms] [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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.764 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.771 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.771 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.772 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.774 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=349] [neededSchemaVersion=350] ["start time"=481.586µs] [gotSchemaVersion=350] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:13.776 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=350] [2024/05/06 09:47:13.779 +00:00] [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"=5.369524ms] [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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.780 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.791 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.791 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.792 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.801 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=350] [neededSchemaVersion=351] ["start time"=466.489µs] [gotSchemaVersion=351] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:13.803 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=351] [2024/05/06 09:47:13.805 +00:00] [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"=4.292973ms] [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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.806 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.812 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.812 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.812 +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:47:13.813 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=206] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:13.815 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.821 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:13.822 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.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:0, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.844 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.845 +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:47:13.847 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:24,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:13.848 +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:47:13.849 +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:47:13.850 +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:47:13.857 +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:47:13.857 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.858 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:13.858 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.867 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.867 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.867 +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:47:13.890 +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:47:13.890 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.891 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:13.891 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.898 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.898 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.898 +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:47:13.921 +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:47:13.921 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.922 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:13.922 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.931 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.931 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.932 +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:47:13.944 +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:47:13.944 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.945 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:13.945 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.952 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.952 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:13.953 +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:47:14.068 +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:47:14.068 +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:192, ArgLen:6, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.071 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.072 +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:192, ArgLen:6, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.080 +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:192, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.080 +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:192, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.080 +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:47:14.093 +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"=134.514994ms] [2024/05/06 09:47:14.093 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=206] [2024/05/06 09:47:14.093 +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:47:14.180 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=2016] [2024/05/06 09:47:14.180 +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:2016, ArgLen:6, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.181 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.182 +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:2016, ArgLen:6, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.190 +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:2016, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.190 +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:2016, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.190 +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:47:14.193 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:14.255 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.258 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=351] [neededSchemaVersion=352] ["start time"=491.799µs] [gotSchemaVersion=352] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:14.260 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=352] [2024/05/06 09:47:14.275 +00:00] [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"=17.563351ms] [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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.276 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.285 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.285 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032850812929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.285 +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:47:14.286 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.297 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=352] [neededSchemaVersion=353] ["start time"=488.865µs] [gotSchemaVersion=353] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:14.298 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=353] [2024/05/06 09:47:14.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=353] ["take time"=13.447873ms] [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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.302 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.309 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.309 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.310 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=206] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000018] [endKey=74800000000000006f5f69ffff000000000018ff] [2024/05/06 09:47:14.312 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.313 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.314 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.320 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.320 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.322 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:24,StartKey:74800000000000006f5f69ffff000000000018,EndKey:74800000000000006f5f69ffff000000000018ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:14.323 +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:47:14.323 +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:47:14.324 +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:47:14.386 +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:47:14.386 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.386 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.387 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.396 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.397 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.424 +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"=211.594µs] [2024/05/06 09:47:14.424 +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:47:14.424 +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:47:14.466 +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:47:14.466 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.467 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.468 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.496 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.496 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.516 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:14.626 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:14.626 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.629 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=353] [neededSchemaVersion=354] ["start time"=502.954µs] [gotSchemaVersion=354] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:14.632 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=206] [version=354] [2024/05/06 09:47: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=354] ["take time"=5.206659ms] [job="ID:206, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.638 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.646 +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:47:14.648 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=206] [jobType="add index"] [2024/05/06 09:47:14.648 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.653 +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:47:13.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574032981360640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.654 +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:47:14.660 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=206] [2024/05/06 09:47:14.660 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:14.660 +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:47:14.664 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:14.665 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:14.684 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.686 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.687 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.689 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574033079402496, conflictStartTS=449574033079402497, conflictCommitTS=449574033079926784, 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:47:14.689 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574033079402496, conflictStartTS=449574033079402497, conflictCommitTS=449574033079926784, 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:47:14.689 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574033079402496, conflictStartTS=449574033079402497, conflictCommitTS=449574033079926784, 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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.695 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.695 +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:47:14.662 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.695 +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:47:14.662 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:14.695 +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:47:14.662 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.696 +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:47:14.662 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.698 +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:47:14.662 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.699 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=207] [2024/05/06 09:47:14.699 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:14.699 +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:47:14.699 +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:47:14.704 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:14.704 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:14.732 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.733 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.736 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.740 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=354] [neededSchemaVersion=356] ["start time"=520.101µs] [gotSchemaVersion=356] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:14.742 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=356] [2024/05/06 09:47:14.747 +00:00] [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.916412ms] [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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.749 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.761 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.761 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.764 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.766 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=356] [neededSchemaVersion=357] ["start time"=510.291µs] [gotSchemaVersion=357] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:14.768 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=357] [2024/05/06 09:47:14.773 +00:00] [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"=5.700859ms] [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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.774 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.781 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.783 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.784 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.786 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=357] [neededSchemaVersion=358] ["start time"=493.185µs] [gotSchemaVersion=358] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:14.787 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=358] [2024/05/06 09:47:14.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=358] ["take time"=5.300216ms] [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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.792 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.800 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.800 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.801 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.808 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=358] [neededSchemaVersion=359] ["start time"=488.009µs] [gotSchemaVersion=359] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:14.810 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=208] [version=359] [2024/05/06 09:47:14.813 +00:00] [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"=5.459979ms] [job="ID:208, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.814 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.821 +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:47:14.822 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=208] [jobType="drop column"] [2024/05/06 09:47:14.822 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.828 +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:47:14.701 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.831 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=208] [2024/05/06 09:47:14.831 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:14.832 +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:47:14.854 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:14.855 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:14.855 +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:47:14.867 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.867 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.868 +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:47:14.833 +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:47:14.868 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.871 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=359] [neededSchemaVersion=360] ["start time"=409.826µs] [gotSchemaVersion=360] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:14.872 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=360] [2024/05/06 09:47:14.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=360] ["take time"=4.250831ms] [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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.875 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.881 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.881 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.881 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.886 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=360] [neededSchemaVersion=361] ["start time"=471.192µs] [gotSchemaVersion=361] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:14.887 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=361] [2024/05/06 09:47:14.890 +00:00] [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"=4.839237ms] [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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.891 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.897 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.897 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.900 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.902 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=361] [neededSchemaVersion=362] ["start time"=417.332µs] [gotSchemaVersion=362] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:14.904 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=362] [2024/05/06 09:47:14.904 +00:00] [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.815062ms] [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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.906 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.926 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.926 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.935 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.937 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=362] [neededSchemaVersion=363] ["start time"=439.23µs] [gotSchemaVersion=363] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:14.939 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=209] [version=363] [2024/05/06 09:47:14.942 +00:00] [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"=5.406045ms] [job="ID:209, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.947 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.954 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.959 +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:47:14.833 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:14.961 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=209] [2024/05/06 09:47:14.961 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:14.961 +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:47:14.978 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:14.978 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:14.990 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.990 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.991 +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:47:14.962 +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:47:14.991 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:14.993 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.995 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=363] [neededSchemaVersion=364] ["start time"=506.018µs] [gotSchemaVersion=364] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:14.997 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=364] [2024/05/06 09:47:14.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=364] ["take time"=2.068988ms] [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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:14.998 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.005 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.005 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.006 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.008 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=364] [neededSchemaVersion=365] ["start time"=451.384µs] [gotSchemaVersion=365] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.010 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=365] [2024/05/06 09:47:15.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=365] ["take time"=5.393406ms] [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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.014 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.022 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.022 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.023 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=365] [neededSchemaVersion=366] ["start time"=461.397µs] [gotSchemaVersion=366] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.032 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=366] [2024/05/06 09:47:15.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=366] ["take time"=7.21274ms] [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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.033 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.050 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.050 +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:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.050 +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:47:15.051 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=210] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:15.054 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.055 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.055 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.062 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.062 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.063 +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:47:15.064 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:25,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:15.065 +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:47:15.065 +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:47:15.066 +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:47:15.076 +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:47:15.076 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.077 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.077 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.088 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.088 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.088 +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:47:15.102 +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:47:15.102 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.103 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.103 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.109 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.109 +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:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.110 +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:47:15.124 +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:47:15.124 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.125 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.125 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.132 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.132 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.133 +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:47:15.147 +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:47:15.147 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.148 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.148 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.161 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.161 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.162 +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:47:15.184 +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:47:15.184 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.185 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.185 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.197 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.197 +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:0, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.198 +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:47:15.255 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=32] [2024/05/06 09:47:15.255 +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:32, ArgLen:6, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.256 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.256 +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:32, ArgLen:6, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.263 +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:32, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.263 +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:32, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.264 +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:47:15.333 +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"=143.560517ms] [2024/05/06 09:47:15.333 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=210] [2024/05/06 09:47:15.333 +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:47:15.349 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=896] [2024/05/06 09:47:15.349 +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:896, ArgLen:6, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.350 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.350 +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:896, ArgLen:6, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.358 +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:896, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.358 +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:896, ArgLen:0, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.358 +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:47:15.360 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:15.437 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.441 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=366] [neededSchemaVersion=367] ["start time"=506.37µs] [gotSchemaVersion=367] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.443 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=367] [2024/05/06 09:47:15.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=367] ["take time"=17.438093ms] [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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.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:2049, ArgLen:6, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.466 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.466 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033175347201, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.466 +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:47:15.468 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.470 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=367] [neededSchemaVersion=368] ["start time"=465.597µs] [gotSchemaVersion=368] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.472 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=368] [2024/05/06 09:47:15.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=368] ["take time"=4.545346ms] [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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.476 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.495 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.496 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.496 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=210] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000019] [endKey=74800000000000006f5f69ffff000000000019ff] [2024/05/06 09:47:15.504 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.505 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.506 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.512 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.513 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.514 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:25,StartKey:74800000000000006f5f69ffff000000000019,EndKey:74800000000000006f5f69ffff000000000019ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:15.515 +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:47:15.515 +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:47:15.516 +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:47:15.594 +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:47:15.595 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.596 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.596 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.604 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.604 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.633 +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"=238.617µs] [2024/05/06 09:47:15.634 +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:47:15.634 +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:47:15.665 +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:47:15.665 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.665 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.666 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.675 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.675 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.677 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:15.733 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:15.733 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.736 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=368] [neededSchemaVersion=369] ["start time"=525.335µs] [gotSchemaVersion=369] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.737 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=210] [version=369] [2024/05/06 09:47:15.740 +00:00] [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"=4.412751ms] [job="ID:210, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.741 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.749 +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:47:15.750 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=210] [jobType="add index"] [2024/05/06 09:47:15.751 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.756 +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:47:15.757 +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:47:14.962 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033292263424, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.765 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=210] [2024/05/06 09:47:15.765 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:15.765 +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:47:15.768 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:15.768 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:15.784 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.784 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.785 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.787 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=369] [neededSchemaVersion=370] ["start time"=538.329µs] [gotSchemaVersion=370] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:15.788 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=370] [2024/05/06 09:47:15.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=370] ["take time"=2.094082ms] [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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.789 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.799 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.800 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.801 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.803 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=370] [neededSchemaVersion=371] ["start time"=552.811µs] [gotSchemaVersion=371] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:15.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=371] [2024/05/06 09:47:15.813 +00:00] [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"=10.520093ms] [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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.814 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.826 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.826 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.827 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.829 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=371] [neededSchemaVersion=372] ["start time"=457.608µs] [gotSchemaVersion=372] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:15.832 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=372] [2024/05/06 09:47:15.833 +00:00] [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"=4.093097ms] [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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.834 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.841 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.841 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.842 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.845 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=372] [neededSchemaVersion=373] ["start time"=487.503µs] [gotSchemaVersion=373] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:15.849 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=211] [version=373] [2024/05/06 09:47:15.850 +00:00] [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"=6.017004ms] [job="ID:211, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.852 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.857 +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:47:15.858 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=211] [jobType="drop column"] [2024/05/06 09:47:15.859 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.864 +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:47:15.767 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.867 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=211] [2024/05/06 09:47:15.867 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:15.867 +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:47:15.871 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:15.871 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:15.880 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.880 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.881 +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:47:15.869 +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:47:15.881 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.888 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=373] [neededSchemaVersion=374] ["start time"=500.379µs] [gotSchemaVersion=374] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:15.889 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=374] [2024/05/06 09:47:15.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=374] ["take time"=2.018118ms] [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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.889 +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:47:15.892 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.899 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.899 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.901 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.909 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=374] [neededSchemaVersion=375] ["start time"=4.299185ms] [gotSchemaVersion=375] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:15.910 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=375] [2024/05/06 09:47:15.913 +00:00] [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"=8.458477ms] [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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.914 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.920 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.920 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.925 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.927 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=375] [neededSchemaVersion=376] ["start time"=460.122µs] [gotSchemaVersion=376] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:15.930 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=376] [2024/05/06 09:47:15.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=376] ["take time"=4.932493ms] [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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.932 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.940 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.941 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.941 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.943 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=376] [neededSchemaVersion=377] ["start time"=418.793µs] [gotSchemaVersion=377] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:15.945 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=212] [version=377] [2024/05/06 09:47:15.945 +00:00] [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"=2.056164ms] [job="ID:212, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.946 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.952 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.956 +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:47:15.869 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:15.958 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=212] [2024/05/06 09:47:15.958 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:15.959 +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:47:15.965 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:15.966 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:15.982 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.982 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.982 +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:47:15.96 +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:47:15.982 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:15.989 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.991 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=377] [neededSchemaVersion=378] ["start time"=541.965µs] [gotSchemaVersion=378] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:15.992 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=378] [2024/05/06 09:47:15.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=378] ["take time"=6.446727ms] [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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:15.998 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.005 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.005 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.006 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.008 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=378] [neededSchemaVersion=379] ["start time"=483.003µs] [gotSchemaVersion=379] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:16.010 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=379] [2024/05/06 09:47:16.012 +00:00] [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"=4.828714ms] [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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.018 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.026 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.026 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.026 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.033 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=379] [neededSchemaVersion=380] ["start time"=458.709µs] [gotSchemaVersion=380] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:16.038 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=380] [2024/05/06 09:47:16.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=380] ["take time"=6.009912ms] [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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.041 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.047 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.047 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.048 +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:47:16.049 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=213] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:16.051 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.052 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.053 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.061 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.061 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.061 +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:47:16.063 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:26,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:16.064 +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:47:16.064 +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:47:16.064 +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:47:16.076 +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:47:16.076 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.077 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.078 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.089 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.089 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.090 +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:47:16.104 +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:47:16.104 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.104 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.105 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.113 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.113 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.113 +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:47:16.126 +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:47:16.126 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.127 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.127 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.137 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.137 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.137 +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:47:16.151 +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:47:16.151 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.152 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.152 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.160 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.160 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.161 +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:47:16.230 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=224] [2024/05/06 09:47:16.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:224, ArgLen:6, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.231 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.232 +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:224, ArgLen:6, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.236 +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:224, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.236 +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:224, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.237 +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:47:16.254 +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"=86.478455ms] [2024/05/06 09:47:16.254 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=213] [2024/05/06 09:47:16.254 +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:47:16.296 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1856] [2024/05/06 09:47:16.296 +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:1856, ArgLen:6, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.310 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.310 +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:1856, ArgLen:6, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.318 +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:1856, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.318 +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:1856, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.319 +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:47:16.320 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:16.401 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.403 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=380] [neededSchemaVersion=381] ["start time"=476.791µs] [gotSchemaVersion=381] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:16.405 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=381] [2024/05/06 09:47:16.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=381] ["take time"=4.280699ms] [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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.408 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.415 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.415 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033436966912, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.416 +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:47:16.416 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.419 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=381] [neededSchemaVersion=382] ["start time"=581.525µs] [gotSchemaVersion=382] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:16.421 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=382] [2024/05/06 09:47:16.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=382] ["take time"=29.694094ms] [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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.454 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.467 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.468 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.468 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=213] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001a] [endKey=74800000000000006f5f69ffff00000000001aff] [2024/05/06 09:47:16.474 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.477 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.477 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.486 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.486 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.488 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:26,StartKey:74800000000000006f5f69ffff00000000001a,EndKey:74800000000000006f5f69ffff00000000001aff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:16.489 +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:47:16.489 +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:47:16.489 +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:47:16.543 +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:47:16.543 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.544 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.544 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.560 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.560 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.591 +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"=221.996µs] [2024/05/06 09:47:16.591 +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:47:16.591 +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:47:16.634 +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:47:16.634 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.635 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.635 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.644 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.644 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.658 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:16.743 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:16.743 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.746 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=382] [neededSchemaVersion=383] ["start time"=480.828µs] [gotSchemaVersion=383] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:16.747 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=213] [version=383] [2024/05/06 09:47:16.751 +00:00] [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"=6.301854ms] [job="ID:213, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.754 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.769 +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:47:16.772 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=213] [jobType="add index"] [2024/05/06 09:47:16.773 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.789 +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:47:15.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033547067392, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:16.791 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=213] [2024/05/06 09:47:16.791 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:16.792 +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:47:16.797 +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:47:16.798 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:16.798 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:16.804 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.804 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.805 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.809 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=383] [neededSchemaVersion=384] ["start time"=499.861µs] [gotSchemaVersion=384] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:16.810 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=384] [2024/05/06 09:47:16.813 +00:00] [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.908219ms] [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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.815 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.821 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.823 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.824 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.826 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=384] [neededSchemaVersion=385] ["start time"=418.379µs] [gotSchemaVersion=385] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:16.827 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=385] [2024/05/06 09:47:16.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=385] ["take time"=4.813979ms] [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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.831 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.840 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.842 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.842 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.844 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=385] [neededSchemaVersion=386] ["start time"=433.148µs] [gotSchemaVersion=386] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:16.846 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=386] [2024/05/06 09:47:16.854 +00:00] [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"=10.066609ms] [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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.855 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.862 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.862 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.862 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.865 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=386] [neededSchemaVersion=387] ["start time"=425.559µs] [gotSchemaVersion=387] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:16.867 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=214] [version=387] [2024/05/06 09:47:16.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=387] ["take time"=5.578498ms] [job="ID:214, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.876 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.881 +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:47:16.883 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=214] [jobType="drop column"] [2024/05/06 09:47:16.883 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.894 +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:47:16.795 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.898 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=214] [2024/05/06 09:47:16.898 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:16.899 +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:47:16.902 +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:47:16.904 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:16.904 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:16.919 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.919 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.920 +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:47:16.9 +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:47:16.921 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.940 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=387] [neededSchemaVersion=388] ["start time"=445.355µs] [gotSchemaVersion=388] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:16.943 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=388] [2024/05/06 09:47:16.947 +00:00] [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"=7.343414ms] [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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.948 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.955 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.955 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.957 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.964 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=388] [neededSchemaVersion=389] ["start time"=496.409µs] [gotSchemaVersion=389] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:16.966 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=389] [2024/05/06 09:47:16.966 +00:00] [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"=6.654953ms] [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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.967 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.974 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.974 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.975 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:16.977 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=389] [neededSchemaVersion=390] ["start time"=423.689µs] [gotSchemaVersion=390] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:16.979 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=390] [2024/05/06 09:47:16.992 +00:00] [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"=15.144398ms] [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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.006 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.016 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.016 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.017 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.019 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=390] [neededSchemaVersion=391] ["start time"=475.147µs] [gotSchemaVersion=391] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:17.021 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=215] [version=391] [2024/05/06 09:47:17.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=391] ["take time"=4.498514ms] [job="ID:215, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.034 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.049 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.052 +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:47:16.9 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.056 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=215] [2024/05/06 09:47:17.056 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:17.056 +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:47:17.060 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:17.060 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:17.080 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.080 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.080 +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:47:17.058 +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:47:17.080 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:17.081 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.089 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=391] [neededSchemaVersion=392] ["start time"=501.36µs] [gotSchemaVersion=392] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.090 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=392] [2024/05/06 09:47:17.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=392] ["take time"=4.133855ms] [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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.092 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.103 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.103 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.112 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.114 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=392] [neededSchemaVersion=393] ["start time"=551.295µs] [gotSchemaVersion=393] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.116 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=393] [2024/05/06 09:47:17.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=393] ["take time"=7.792845ms] [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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.122 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.136 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.137 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.138 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.142 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=393] [neededSchemaVersion=394] ["start time"=535.818µs] [gotSchemaVersion=394] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.144 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=394] [2024/05/06 09:47:17.153 +00:00] [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"=11.538674ms] [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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.157 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.166 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.166 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.167 +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:47:17.167 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=216] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:17.179 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.181 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.182 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.191 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.192 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.192 +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:47:17.194 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:27,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:17.195 +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:47:17.195 +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:47:17.195 +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:47:17.207 +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:47:17.208 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.208 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.209 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.239 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.239 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.239 +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:47:17.251 +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:47:17.252 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.252 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.253 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.261 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.261 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.261 +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:47:17.288 +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:47:17.288 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.289 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.290 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.296 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.317 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.318 +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:47:17.377 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=544] [2024/05/06 09:47:17.377 +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:544, ArgLen:6, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.379 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.380 +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:544, ArgLen:6, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.390 +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:544, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.390 +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:544, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.391 +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:47:17.392 +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"=97.188946ms] [2024/05/06 09:47:17.392 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=216] [2024/05/06 09:47:17.392 +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:47:17.393 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:17.448 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.450 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=394] [neededSchemaVersion=395] ["start time"=453.081µs] [gotSchemaVersion=395] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.451 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=395] [2024/05/06 09:47:17.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=395] ["take time"=12.150627ms] [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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.463 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.471 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.471 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033730306048, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.471 +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:47:17.472 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.474 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=395] [neededSchemaVersion=396] ["start time"=437.146µs] [gotSchemaVersion=396] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.475 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=396] [2024/05/06 09:47:17.480 +00:00] [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"=6.981529ms] [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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.482 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.487 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.487 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.487 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=216] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001b] [endKey=74800000000000006f5f69ffff00000000001bff] [2024/05/06 09:47:17.490 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.491 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.492 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.498 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.498 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.500 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:27,StartKey:74800000000000006f5f69ffff00000000001b,EndKey:74800000000000006f5f69ffff00000000001bff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:17.501 +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:47:17.501 +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:47:17.501 +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:47:17.555 +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:47:17.555 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.556 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.557 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.564 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.565 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.610 +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"=195.531µs] [2024/05/06 09:47:17.610 +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:47:17.610 +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:47:17.624 +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:47:17.624 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.625 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.625 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.632 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.633 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.635 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:17.694 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:17.695 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.697 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=396] [neededSchemaVersion=397] ["start time"=462.116µs] [gotSchemaVersion=397] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.698 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=216] [version=397] [2024/05/06 09:47:17.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=397] ["take time"=2.23346ms] [job="ID:216, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.701 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.707 +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:47:17.708 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=216] [jobType="add index"] [2024/05/06 09:47:17.709 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, 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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.712 +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:47:17.715 +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:47:17.058 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033814192129, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.720 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=216] [2024/05/06 09:47:17.720 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:17.721 +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:47:17.723 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:17.723 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:17.731 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.731 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.734 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.736 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=397] [neededSchemaVersion=398] ["start time"=450.786µs] [gotSchemaVersion=398] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:17.738 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=398] [2024/05/06 09:47:17.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=398] ["take time"=5.068876ms] [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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.742 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.750 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.750 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.751 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.753 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=398] [neededSchemaVersion=399] ["start time"=404.638µs] [gotSchemaVersion=399] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:17.754 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=399] [2024/05/06 09:47:17.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=399] ["take time"=9.416784ms] [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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.763 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.769 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.769 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.773 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.776 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=399] [neededSchemaVersion=400] ["start time"=474.767µs] [gotSchemaVersion=400] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:17.778 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=400] [2024/05/06 09:47:17.781 +00:00] [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"=4.907725ms] [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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.786 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.790 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.790 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.790 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.792 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=400] [neededSchemaVersion=401] ["start time"=382.675µs] [gotSchemaVersion=401] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:17.794 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=217] [version=401] [2024/05/06 09:47:17.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=401] ["take time"=2.980118ms] [job="ID:217, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.796 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.801 +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:47:17.808 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=217] [jobType="drop column"] [2024/05/06 09:47:17.808 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.822 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=217] [2024/05/06 09:47:17.822 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:17.822 +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:47:17.828 +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:47:17.722 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.839 +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:47:17.839 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:17.839 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:17.845 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.845 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.845 +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:47:17.824 +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:47:17.846 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.848 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=401] [neededSchemaVersion=402] ["start time"=436.19µs] [gotSchemaVersion=402] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:17.851 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=402] [2024/05/06 09:47:17.851 +00:00] [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"=4.031065ms] [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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.852 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.858 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.858 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.864 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.866 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=402] [neededSchemaVersion=403] ["start time"=427.698µs] [gotSchemaVersion=403] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:17.867 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=403] [2024/05/06 09:47:17.868 +00:00] [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"=2.433678ms] [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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.869 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.874 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.874 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.876 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.878 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=403] [neededSchemaVersion=404] ["start time"=400.236µs] [gotSchemaVersion=404] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:17.880 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=404] [2024/05/06 09:47:17.882 +00:00] [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"=3.823289ms] [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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.884 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.892 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.892 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.893 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.897 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=404] [neededSchemaVersion=405] ["start time"=384.407µs] [gotSchemaVersion=405] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:17.898 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=218] [version=405] [2024/05/06 09:47:17.904 +00:00] [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"=9.296522ms] [job="ID:218, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.907 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.912 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.921 +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:47:17.824 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:17.922 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=218] [2024/05/06 09:47:17.922 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:17.923 +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:47:17.927 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:17.927 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:17.939 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.939 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.939 +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:47:17.924 +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:47:17.939 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:17.940 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.941 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=405] [neededSchemaVersion=406] ["start time"=420.667µs] [gotSchemaVersion=406] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.943 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=406] [2024/05/06 09:47:17.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=406] ["take time"=9.745794ms] [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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.952 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.957 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.957 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.958 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.960 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=406] [neededSchemaVersion=407] ["start time"=450.995µs] [gotSchemaVersion=407] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.961 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=407] [2024/05/06 09:47:17.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=407] ["take time"=2.010401ms] [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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.963 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.974 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.974 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.974 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.976 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=407] [neededSchemaVersion=408] ["start time"=455.802µs] [gotSchemaVersion=408] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:17.978 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=408] [2024/05/06 09:47:17.980 +00:00] [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.023576ms] [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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:17.981 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.004 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.004 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.005 +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:47:18.006 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=219] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:18.008 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.009 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.010 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.018 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.018 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.022 +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:47:18.023 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:28,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:18.024 +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:47:18.024 +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:47:18.025 +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:47:18.035 +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:47:18.035 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.037 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.038 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.043 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.043 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.044 +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:47:18.062 +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:47:18.062 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.063 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.064 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.071 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.071 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.071 +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:47:18.092 +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:47:18.092 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.093 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.093 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.100 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.100 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.100 +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:47:18.146 +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:47:18.146 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.147 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.147 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.155 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.155 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.155 +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:47:18.267 +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"=122.49877ms] [2024/05/06 09:47:18.267 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=219] [2024/05/06 09:47:18.267 +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:47:18.279 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=800] [2024/05/06 09:47:18.279 +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:800, ArgLen:6, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.288 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.288 +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:800, ArgLen:6, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.295 +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:800, ArgLen:0, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.295 +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:800, ArgLen:0, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.295 +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:47:18.297 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:18.361 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.364 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=408] [neededSchemaVersion=409] ["start time"=485.082µs] [gotSchemaVersion=409] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.366 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=409] [2024/05/06 09:47:18.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=409] ["take time"=11.350697ms] [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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.377 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.387 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.387 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574033949982720, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.387 +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:47:18.388 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.391 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=409] [neededSchemaVersion=410] ["start time"=421.146µs] [gotSchemaVersion=410] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.392 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=410] [2024/05/06 09:47:18.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=410] ["take time"=2.812548ms] [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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.395 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.405 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.405 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.406 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=219] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001c] [endKey=74800000000000006f5f69ffff00000000001cff] [2024/05/06 09:47:18.409 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.410 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.411 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.417 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.417 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.419 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:28,StartKey:74800000000000006f5f69ffff00000000001c,EndKey:74800000000000006f5f69ffff00000000001cff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:18.420 +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:47:18.420 +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:47:18.421 +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:47:18.500 +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:47:18.500 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.501 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.502 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.521 +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"=261.599µs] [2024/05/06 09:47:18.522 +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:47:18.522 +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:47:18.539 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.539 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.542 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:18.624 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:18.624 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.636 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=410] [neededSchemaVersion=411] ["start time"=451.772µs] [gotSchemaVersion=411] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.638 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=219] [version=411] [2024/05/06 09:47:18.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=411] ["take time"=4.008543ms] [job="ID:219, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.640 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.647 +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:47:18.650 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=219] [jobType="add index"] [2024/05/06 09:47:18.650 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.653 +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:47:17.924 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034055102464, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.659 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=219] [2024/05/06 09:47:18.659 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:18.659 +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:47:18.672 +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:47:18.672 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:18.672 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:18.680 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.680 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.681 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.683 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=411] [neededSchemaVersion=412] ["start time"=476.797µs] [gotSchemaVersion=412] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:18.684 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=412] [2024/05/06 09:47:18.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=412] ["take time"=2.09921ms] [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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.686 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.695 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.695 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.699 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.701 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=412] [neededSchemaVersion=413] ["start time"=461.766µs] [gotSchemaVersion=413] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:18.703 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=413] [2024/05/06 09:47:18.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=413] ["take time"=4.833813ms] [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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.706 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.712 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.712 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.717 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.719 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=413] [neededSchemaVersion=414] ["start time"=448.441µs] [gotSchemaVersion=414] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:18.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=414] [2024/05/06 09:47:18.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=414] ["take time"=5.104065ms] [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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.726 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.733 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.735 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.735 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.738 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=414] [neededSchemaVersion=415] ["start time"=415.901µs] [gotSchemaVersion=415] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:18.739 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=220] [version=415] [2024/05/06 09:47:18.740 +00:00] [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"=2.963652ms] [job="ID:220, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.741 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.746 +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:47:18.747 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=220] [jobType="drop column"] [2024/05/06 09:47:18.748 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.752 +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:47:18.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.764 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=220] [2024/05/06 09:47:18.764 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:18.765 +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:47:18.768 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:18.768 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:18.786 +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:47:18.791 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.791 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.791 +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:47:18.766 +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:47:18.792 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.794 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=415] [neededSchemaVersion=416] ["start time"=435.023µs] [gotSchemaVersion=416] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:18.795 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=416] [2024/05/06 09:47:18.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=416] ["take time"=2.055346ms] [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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.796 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.800 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.800 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.802 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=416] [neededSchemaVersion=417] ["start time"=448.663µs] [gotSchemaVersion=417] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:18.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=417] [2024/05/06 09:47:18.813 +00:00] [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"=9.383423ms] [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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.814 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.820 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.820 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.821 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.823 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=417] [neededSchemaVersion=418] ["start time"=444.093µs] [gotSchemaVersion=418] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:18.824 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=418] [2024/05/06 09:47:18.824 +00:00] [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"=2.010314ms] [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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.825 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.833 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.833 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.834 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.837 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=418] [neededSchemaVersion=419] ["start time"=439.557µs] [gotSchemaVersion=419] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:18.838 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=221] [version=419] [2024/05/06 09:47:18.842 +00:00] [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"=5.953108ms] [job="ID:221, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.842 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.847 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.858 +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:47:18.766 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:18.859 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=221] [2024/05/06 09:47:18.859 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:18.859 +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:47:18.866 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:18.866 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:18.883 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.883 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.883 +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:47:18.861 +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:47:18.883 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:18.884 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.886 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=419] [neededSchemaVersion=420] ["start time"=426.412µs] [gotSchemaVersion=420] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.887 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=420] [2024/05/06 09:47:18.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=420] ["take time"=2.193457ms] [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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.891 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.920 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.920 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.924 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.935 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=420] [neededSchemaVersion=421] ["start time"=459.957µs] [gotSchemaVersion=421] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.936 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=421] [2024/05/06 09:47:18.939 +00:00] [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.33189ms] [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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.941 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.947 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.947 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.951 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.953 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=421] [neededSchemaVersion=422] ["start time"=476.015µs] [gotSchemaVersion=422] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:18.954 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=422] [2024/05/06 09:47:18.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=422] ["take time"=12.884935ms] [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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.968 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.975 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.975 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.975 +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:47:18.976 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=222] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:18.987 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.988 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:18.988 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.994 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.994 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:18.995 +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:47:18.996 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:29,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:18.997 +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:47:18.997 +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:47:18.998 +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:47:19.008 +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:47:19.008 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.008 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.009 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.027 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.036 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.036 +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:47:19.048 +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:47:19.049 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.050 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.051 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.060 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.060 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.060 +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:47:19.076 +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:47:19.076 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.077 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.077 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.084 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.084 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.084 +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:47: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:47:19.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:0, ArgLen:6, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.097 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.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:0, ArgLen:6, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.104 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.104 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.104 +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:47:19.174 +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:47:19.174 +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:160, ArgLen:6, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.175 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.175 +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:160, ArgLen:6, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.183 +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:160, ArgLen:0, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.183 +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:160, ArgLen:0, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.184 +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:47:19.184 +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"=82.045986ms] [2024/05/06 09:47:19.184 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=222] [2024/05/06 09:47:19.184 +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:47:19.185 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:19.223 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.225 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=422] [neededSchemaVersion=423] ["start time"=462.397µs] [gotSchemaVersion=423] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.227 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=423] [2024/05/06 09:47:19.234 +00:00] [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"=9.402719ms] [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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.237 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.244 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.244 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034204524544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.245 +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:47:19.252 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.255 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=423] [neededSchemaVersion=424] ["start time"=463.128µs] [gotSchemaVersion=424] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.256 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=424] [2024/05/06 09:47:19.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=424] ["take time"=4.076029ms] [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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.259 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.271 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.271 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.271 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=222] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001d] [endKey=74800000000000006f5f69ffff00000000001dff] [2024/05/06 09:47:19.275 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.276 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.276 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.284 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.284 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.286 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:29,StartKey:74800000000000006f5f69ffff00000000001d,EndKey:74800000000000006f5f69ffff00000000001dff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:19.286 +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:47:19.286 +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:47:19.287 +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:47:19.372 +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:47:19.372 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.373 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.373 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.382 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.382 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.387 +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"=121.645µs] [2024/05/06 09:47:19.387 +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:47:19.388 +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:47:19.388 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:19.427 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:19.427 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.430 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=424] [neededSchemaVersion=425] ["start time"=508.074µs] [gotSchemaVersion=425] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.432 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=222] [version=425] [2024/05/06 09:47:19.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=425] ["take time"=5.51759ms] [job="ID:222, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.436 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.447 +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:47:19.460 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=222] [jobType="add index"] [2024/05/06 09:47:19.460 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, 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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.469 +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:47:19.471 +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:47:18.861 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034281857025, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.476 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=222] [2024/05/06 09:47:19.476 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:19.476 +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:47:19.479 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:19.479 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:19.485 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.485 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.490 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.493 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=425] [neededSchemaVersion=426] ["start time"=454.632µs] [gotSchemaVersion=426] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:19.494 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=426] [2024/05/06 09:47:19.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=426] ["take time"=23.379488ms] [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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.519 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.525 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.525 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.526 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.528 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=426] [neededSchemaVersion=427] ["start time"=461.629µs] [gotSchemaVersion=427] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:19.531 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=427] [2024/05/06 09:47:19.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=427] ["take time"=4.169742ms] [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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.534 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.539 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.539 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.540 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.543 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=427] [neededSchemaVersion=428] ["start time"=454.861µs] [gotSchemaVersion=428] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:19.544 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=428] [2024/05/06 09:47:19.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=428] ["take time"=4.860656ms] [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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.548 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.562 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.562 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.562 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.565 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=428] [neededSchemaVersion=429] ["start time"=409.331µs] [gotSchemaVersion=429] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:19.566 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=223] [version=429] [2024/05/06 09:47:19.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=429] ["take time"=2.523047ms] [job="ID:223, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.568 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.573 +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:47:19.595 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=223] [jobType="drop column"] [2024/05/06 09:47:19.596 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.603 +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:47:19.478 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.607 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=223] [2024/05/06 09:47:19.607 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:19.608 +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:47:19.638 +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:47:19.638 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:19.638 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column c3 bigint"] [2024/05/06 09:47:19.644 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.645 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.645 +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:47:19.626 +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:47:19.645 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.647 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=429] [neededSchemaVersion=430] ["start time"=439.771µs] [gotSchemaVersion=430] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:19.649 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=430] [2024/05/06 09:47:19.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=430] ["take time"=2.705164ms] [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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.652 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.657 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.657 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.658 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.660 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=430] [neededSchemaVersion=431] ["start time"=419.172µs] [gotSchemaVersion=431] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:19.662 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=431] [2024/05/06 09:47:19.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=431] ["take time"=2.014714ms] [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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.663 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.669 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.669 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.670 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.672 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=431] [neededSchemaVersion=432] ["start time"=432.289µs] [gotSchemaVersion=432] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:19.674 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=432] [2024/05/06 09:47:19.676 +00:00] [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.321897ms] [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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.677 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.681 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.681 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.682 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.685 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=432] [neededSchemaVersion=433] ["start time"=428.878µs] [gotSchemaVersion=433] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:19.686 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=224] [version=433] [2024/05/06 09:47:19.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=433] ["take time"=4.010009ms] [job="ID:224, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.689 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.694 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.698 +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:47:19.626 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:19.699 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=224] [2024/05/06 09:47:19.699 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:19.699 +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:47:19.704 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:19.704 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index idx_c3(c3)"] [2024/05/06 09:47:19.724 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.724 +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:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.724 +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:47:19.7 +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:47:19.724 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:19.725 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.736 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=433] [neededSchemaVersion=434] ["start time"=499.623µs] [gotSchemaVersion=434] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.739 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=434] [2024/05/06 09:47:19.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=434] ["take time"=4.100699ms] [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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.740 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.768 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.768 +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:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.769 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.771 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=434] [neededSchemaVersion=435] ["start time"=480.943µs] [gotSchemaVersion=435] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.772 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=435] [2024/05/06 09:47:19.773 +00:00] [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"=2.148537ms] [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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.774 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.792 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.792 +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 only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.793 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.795 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=435] [neededSchemaVersion=436] ["start time"=435.835µs] [gotSchemaVersion=436] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:19.797 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=436] [2024/05/06 09:47:19.804 +00:00] [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"=8.929004ms] [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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.805 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.812 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.812 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.812 +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:47:19.813 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=225] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:19.816 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.818 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.819 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.826 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.826 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.826 +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:47:19.828 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:30,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:19.829 +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:47:19.842 +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:47:19.842 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.843 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.843 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.829 +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:47:19.849 +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:47:19.850 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.850 +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:0, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.850 +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:47:19.863 +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:47:19.863 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.864 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.865 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.871 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.871 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.871 +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:47:19.888 +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:47:19.888 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.888 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.889 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.897 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.897 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.898 +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:47:19.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:47:19.911 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.913 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.914 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.924 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.924 +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:0, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.924 +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:47:19.937 +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:47:19.937 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.938 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:19.938 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.994 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.994 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:19.994 +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:47:20.068 +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:47:20.068 +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:672, ArgLen:6, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.069 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.070 +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:672, ArgLen:6, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.075 +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:672, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.075 +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:672, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.076 +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:47:20.125 +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"=170.117787ms] [2024/05/06 09:47:20.125 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=225] [2024/05/06 09:47:20.125 +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:47:20.231 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1600] [2024/05/06 09:47:20.231 +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:1600, ArgLen:6, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.236 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.237 +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:1600, ArgLen:6, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.251 +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:1600, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.251 +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:1600, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.252 +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:47:20.253 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:20.298 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.300 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=436] [neededSchemaVersion=437] ["start time"=506.609µs] [gotSchemaVersion=437] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:20.302 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=437] [2024/05/06 09:47:20.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=437] ["take time"=4.15682ms] [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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.304 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.311 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.311 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034423676929, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.311 +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:47:20.312 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.315 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=437] [neededSchemaVersion=438] ["start time"=1.177808ms] [gotSchemaVersion=438] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:20.320 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=438] [2024/05/06 09:47:20.322 +00:00] [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"=9.039648ms] [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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.323 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.330 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.330 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.330 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=225] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001e] [endKey=74800000000000006f5f69ffff00000000001eff] [2024/05/06 09:47:20.333 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.338 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.339 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.349 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.349 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.351 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:30,StartKey:74800000000000006f5f69ffff00000000001e,EndKey:74800000000000006f5f69ffff00000000001eff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:20.354 +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:47:20.354 +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:47:20.356 +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:47:20.437 +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:47:20.438 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.438 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.439 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.447 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.447 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.530 +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"=201.253µs] [2024/05/06 09:47:20.530 +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:47:20.530 +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:47:20.568 +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:47:20.568 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.569 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.569 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.577 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.577 +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:2049, ArgLen:0, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.579 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:20.623 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:20.623 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.650 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=438] [neededSchemaVersion=439] ["start time"=24.990566ms] [gotSchemaVersion=439] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:20.652 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=225] [version=439] [2024/05/06 09:47:20.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=439] ["take time"=28.171932ms] [job="ID:225, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.654 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.661 +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:47:20.662 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=225] [jobType="add index"] [2024/05/06 09:47:20.662 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, 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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.669 +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:47:19.7 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574034559467521, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:20.671 +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:47:20.674 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=225] [2024/05/06 09:47:20.674 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:20.674 +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:47:20.680 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.680 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop column c3"] [2024/05/06 09:47:20.688 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.688 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.689 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.691 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=439] [neededSchemaVersion=440] ["start time"=427.47µs] [gotSchemaVersion=440] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:20.696 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=440] [2024/05/06 09:47:20.702 +00:00] [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"=6.179451ms] [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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.703 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.712 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.712 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.713 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.715 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=440] [neededSchemaVersion=441] ["start time"=421.027µs] [gotSchemaVersion=441] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:20.717 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=441] [2024/05/06 09:47:20.718 +00:00] [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.028258ms] [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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.720 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.730 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.730 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.732 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.734 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=441] [neededSchemaVersion=442] ["start time"=460.232µs] [gotSchemaVersion=442] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:20.736 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=442] [2024/05/06 09:47:20.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=442] ["take time"=2.039403ms] [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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.737 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.754 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.754 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.755 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.760 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=442] [neededSchemaVersion=443] ["start time"=417.099µs] [gotSchemaVersion=443] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:20.761 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=226] [version=443] [2024/05/06 09:47: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=443] ["take time"=5.217521ms] [job="ID:226, Type:drop column, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.765 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.772 +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:47:20.773 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=226] [jobType="drop column"] [2024/05/06 09:47:20.774 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.778 +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:47:20.679 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.780 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=226] [2024/05/06 09:47:20.780 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:20.781 +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:47:20.794 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.794 +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:47:20.789 +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:47:20.795 +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:47:20.802 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.802 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.802 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=443] [neededSchemaVersion=444] ["start time"=198.288µs] [gotSchemaVersion=444] [phyTblIDs="[227]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:20.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=228] [version=444] [2024/05/06 09:47:20.822 +00:00] [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"=18.432553ms] [job="ID:228, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:227, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.823 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.830 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.847 +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:47:20.789 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.849 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=228] [2024/05/06 09:47:20.849 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:20.849 +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:47:20.858 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.858 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_rebase auto_increment = 6000"] [2024/05/06 09:47:20.878 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.882 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.884 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.886 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034703122432, conflictStartTS=449574034703122433, conflictCommitTS=449574034703646720, 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:47:20.886 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034703122432, conflictStartTS=449574034703122433, conflictCommitTS=449574034703646720, 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:47:20.886 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574034703122432, conflictStartTS=449574034703122433, conflictCommitTS=449574034703646720, 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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.890 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.890 +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:47:20.851 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.890 +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:47:20.851 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:20.890 +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:47:20.851 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.890 +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:47:20.851 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.893 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=229] [2024/05/06 09:47:20.893 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:20.893 +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:47:20.851 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.893 +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:47:20.893 +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:47:20.896 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.896 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_rebase auto_increment = 9000"] [2024/05/06 09:47:20.910 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.910 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.911 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.913 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=444] [neededSchemaVersion=446] ["start time"=270.61µs] [gotSchemaVersion=446] [phyTblIDs="[227]"] [actionTypes="[13]"] [diffTypes="[\"rebase auto_increment ID\"]"] [2024/05/06 09:47:20.915 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=230] [version=446] [2024/05/06 09:47:20.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=446] ["take time"=4.53598ms] [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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.918 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.925 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.928 +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:47:20.894 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.929 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=230] [2024/05/06 09:47:20.929 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:20.929 +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:47:20.937 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.937 +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:47:20.931 +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:47:20.963 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.963 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.964 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.966 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=446] [neededSchemaVersion=447] ["start time"=205.71µs] [gotSchemaVersion=447] [phyTblIDs="[231]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:20.967 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=232] [version=447] [2024/05/06 09:47:20.968 +00:00] [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.531518ms] [job="ID:232, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:231, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.969 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.977 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.981 +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:47:20.931 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:20.982 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=232] [2024/05/06 09:47:20.982 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:20.983 +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:47:20.985 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:20.985 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_auto shard_row_id_bits = 5"] [2024/05/06 09:47:21.007 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.009 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.010 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.011 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034736939008, conflictStartTS=449574034736939009, conflictCommitTS=449574034737201153, 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:47:21.011 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034736939008, conflictStartTS=449574034736939009, conflictCommitTS=449574034737201153, 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:47:21.011 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574034736939008, conflictStartTS=449574034736939009, conflictCommitTS=449574034737201153, 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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.017 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.017 +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:47:20.984 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.017 +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:47:20.984 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:21.017 +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:47:20.984 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.018 +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:47:20.984 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.020 +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:47:20.984 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.020 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=233] [2024/05/06 09:47:21.020 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.021 +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:47:21.021 +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:47:21.023 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:21.023 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_auto shard_row_id_bits = 8"] [2024/05/06 09:47:21.033 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.033 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.034 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.036 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=447] [neededSchemaVersion=449] ["start time"=249.281µs] [gotSchemaVersion=449] [phyTblIDs="[231]"] [actionTypes="[16]"] [diffTypes="[\"shard row ID\"]"] [2024/05/06 09:47:21.037 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=234] [version=449] [2024/05/06 09:47:21.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=449] ["take time"=2.02548ms] [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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.038 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.044 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.047 +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:47:21.022 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.048 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=234] [2024/05/06 09:47:21.048 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:21.049 +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:47:21.052 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.052 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 mediumint"] [2024/05/06 09:47:21.074 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.076 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.076 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.078 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034754502656, conflictStartTS=449574034754502657, conflictCommitTS=449574034754764800, 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:47:21.078 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034754502656, conflictStartTS=449574034754502657, conflictCommitTS=449574034754764800, 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:47:21.078 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574034754502656, conflictStartTS=449574034754502657, conflictCommitTS=449574034754764800, 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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.084 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.084 +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:47:21.05 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.085 +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:47:21.05 +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:47:21.085 +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:47:21.05 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.085 +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:47:21.05 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.088 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=235] [2024/05/06 09:47:21.088 +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:47:21.05 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.088 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.088 +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:47:21.088 +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:47:21.099 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.099 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 int"] [2024/05/06 09:47:21.131 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.131 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.133 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.137 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=449] [neededSchemaVersion=451] ["start time"=430.816µs] [gotSchemaVersion=451] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.138 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=236] [version=451] [2024/05/06 09:47:21.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=451] ["take time"=2.243319ms] [job="ID:236, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.139 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.152 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=236] [jobType="modify column"] [2024/05/06 09:47:21.152 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.156 +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:47:21.09 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.159 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=236] [2024/05/06 09:47:21.159 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:21.160 +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:47:21.163 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:21.163 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add column mayNullCol bigint default 1"] [2024/05/06 09:47:21.171 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.171 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.172 +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:47:21.161 +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:47:21.177 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.179 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=451] [neededSchemaVersion=452] ["start time"=462.431µs] [gotSchemaVersion=452] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:21.181 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=452] [2024/05/06 09:47:21.181 +00:00] [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"=2.052534ms] [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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.181 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.187 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.187 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.193 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.196 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=452] [neededSchemaVersion=453] ["start time"=454.813µs] [gotSchemaVersion=453] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:21.197 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=453] [2024/05/06 09:47:21.211 +00:00] [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"=15.909091ms] [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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.215 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.220 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.220 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.222 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.224 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=453] [neededSchemaVersion=454] ["start time"=401.037µs] [gotSchemaVersion=454] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:21.225 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=454] [2024/05/06 09:47:21.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=454] ["take time"=2.758353ms] [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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.229 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.235 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.235 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.241 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.247 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=454] [neededSchemaVersion=455] ["start time"=458.666µs] [gotSchemaVersion=455] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:21.248 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=237] [version=455] [2024/05/06 09:47:21.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=455] ["take time"=12.655273ms] [job="ID:237, Type:add column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.260 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.266 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.269 +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:47:21.161 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:21.270 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=237] [2024/05/06 09:47:21.271 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:21.271 +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:47:21.279 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.279 +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:47:21.278 +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:47:21.290 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.293 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.299 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.300 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034811125761, conflictStartTS=449574034811125762, conflictCommitTS=449574034811912192, 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:47:21.301 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034811125761, conflictStartTS=449574034811125762, conflictCommitTS=449574034811912192, 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:47:21.301 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574034811125761, conflictStartTS=449574034811125762, conflictCommitTS=449574034811912192, 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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.333 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.333 +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:47:21.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.333 +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:47:21.278 +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:47:21.333 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.345 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=238] [2024/05/06 09:47:21.346 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.354 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.354 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.355 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.358 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=455] [neededSchemaVersion=457] ["start time"=432.122µs] [gotSchemaVersion=457] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.360 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=238] [version=457] [2024/05/06 09:47:21.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=457] ["take time"=2.963431ms] [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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.364 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.368 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=238] [jobType="modify column"] [2024/05/06 09:47:21.369 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.371 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=238] [2024/05/06 09:47:21.372 +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:47:21.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.374 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=238] [2024/05/06 09:47:21.374 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.375 +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:47:21.375 +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:47:21.384 +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:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.384 +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:47:21.383 +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:47:21.393 +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:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.393 +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:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.401 +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:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.414 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=457] [neededSchemaVersion=458] ["start time"=476.872µs] [gotSchemaVersion=458] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.415 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=239] [version=458] [2024/05/06 09:47:21.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=458] ["take time"=7.218321ms] [job="ID:239, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.421 +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:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.427 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:239, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.427 +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:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.427 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=239] [conn=3] [job="ID:239, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.383 +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:47:21.427 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:239, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.429 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=239] [2024/05/06 09:47:21.429 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.433 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:239, Type:modify column, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.433 +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:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.434 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:239, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.437 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=458] [neededSchemaVersion=459] ["start time"=419.064µs] [gotSchemaVersion=459] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.439 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=239] [version=459] [2024/05/06 09:47: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=459] ["take time"=4.93517ms] [job="ID:239, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.451 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.459 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=239] [jobType="modify column"] [2024/05/06 09:47:21.460 +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:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.462 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=239] [2024/05/06 09:47:21.463 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:239, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.383 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.468 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=239] [2024/05/06 09:47:21.468 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.468 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=457] [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: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:47:21.468 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=459] [cur_db=test] [sql="alter table t modify column mayNullCol bigint default 1 not null"] [user=] [2024/05/06 09:47:21.493 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:240, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.493 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:240, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.491 +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:47:21.501 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:240, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.501 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=240] [conn=3] [category=ddl] [job="ID:240, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.509 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:240, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.511 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=459] [neededSchemaVersion=460] ["start time"=481.454µs] [gotSchemaVersion=460] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.513 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=240] [version=460] [2024/05/06 09:47:21.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=460] ["take time"=4.455481ms] [job="ID:240, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.516 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:240, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.522 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:240, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.522 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=240] [conn=3] [category=ddl] [job="ID:240, Type:modify column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.529 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:240, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.531 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=460] [neededSchemaVersion=461] ["start time"=421.937µs] [gotSchemaVersion=461] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.533 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=240] [version=461] [2024/05/06 09:47:21.533 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=461] ["take time"=2.469075ms] [job="ID:240, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.543 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:240, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.551 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=240] [jobType="modify column"] [2024/05/06 09:47:21.551 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=240] [conn=3] [job="ID:240, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.555 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:240, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.491 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.560 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=240] [2024/05/06 09:47:21.560 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:21.560 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=461] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:21.563 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:241, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.563 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:241, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:21.574 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:241, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.577 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=241] [conn=3] [category=ddl] [job="ID:241, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.578 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:241, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.580 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034885574657, conflictStartTS=449574034885836800, conflictCommitTS=449574034886098944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=241}, originalKey=748000fffffffffffe5f7280000000000000f1, 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:47:21.580 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034885574657, conflictStartTS=449574034885836800, conflictCommitTS=449574034886098944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=241}, originalKey=748000fffffffffffe5f7280000000000000f1, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:21.580 +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=449574034885574657, conflictStartTS=449574034885836800, conflictCommitTS=449574034886098944, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=241}, originalKey=748000fffffffffffe5f7280000000000000f1, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:241, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.599 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:241, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.599 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=241] [conn=3] [category=ddl] [job="ID:241, Type:modify column, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.599 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=241] [conn=3] [job="ID:241, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +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:47:21.599 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:241, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.599 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=241] [conn=3] [job="ID:241, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.603 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:241, Type:modify column, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.562 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.603 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=241] [2024/05/06 09:47:21.604 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.604 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=461] [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:47:21.604 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=461] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:21.608 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:242, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.608 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:242, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:21.630 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:242, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.630 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=242] [conn=3] [category=ddl] [job="ID:242, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.631 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:242, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.633 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=461] [neededSchemaVersion=463] ["start time"=483.783µs] [gotSchemaVersion=463] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.635 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=242] [version=463] [2024/05/06 09:47:21.637 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=463] ["take time"=4.569894ms] [job="ID:242, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.638 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:242, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.645 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:242, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.647 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=242] [conn=3] [category=ddl] [job="ID:242, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.648 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:242, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.649 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034904186880, conflictStartTS=449574034904186881, conflictCommitTS=449574034904711168, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=242}, originalKey=748000fffffffffffe5f7280000000000000f2, 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:47:21.649 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034904186880, conflictStartTS=449574034904186881, conflictCommitTS=449574034904711168, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=242}, originalKey=748000fffffffffffe5f7280000000000000f2, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:21.650 +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=449574034904186880, conflictStartTS=449574034904186881, conflictCommitTS=449574034904711168, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=242}, originalKey=748000fffffffffffe5f7280000000000000f2, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:242, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.657 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:242, Type:modify column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.657 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=242] [conn=3] [category=ddl] [job="ID:242, Type:modify column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.658 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=242] [conn=3] [job="ID:242, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +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:47:21.658 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:242, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.659 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=242] [2024/05/06 09:47:21.659 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:242, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.666 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:242, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.666 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=242] [conn=3] [category=ddl] [job="ID:242, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.667 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:242, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.669 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=463] [neededSchemaVersion=465] ["start time"=452.981µs] [gotSchemaVersion=465] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.670 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=242] [version=465] [2024/05/06 09:47:21.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=465] ["take time"=3.080235ms] [job="ID:242, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.672 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:242, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.680 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=242] [jobType="modify column"] [2024/05/06 09:47:21.681 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=242] [conn=3] [job="ID:242, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.689 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=242] [2024/05/06 09:47:21.689 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:242, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.605 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.692 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=242] [2024/05/06 09:47:21.692 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.692 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=461] [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:47:21.692 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=465] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:21.695 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:243, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.695 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:243, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:21.703 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:243, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.703 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=243] [conn=3] [category=ddl] [job="ID:243, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.704 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:243, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.707 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=465] [neededSchemaVersion=466] ["start time"=1.051319ms] [gotSchemaVersion=466] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.709 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=243] [version=466] [2024/05/06 09:47:21.712 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=466] ["take time"=6.118029ms] [job="ID:243, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.716 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:243, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.733 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:243, Type:modify column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.733 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=243] [conn=3] [category=ddl] [job="ID:243, Type:modify column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.733 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 9, tp add index"] [category=ddl] [jobID=243] [conn=3] [job="ID:243, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +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:47:21.733 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:243, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.735 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=243] [2024/05/06 09:47:21.735 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:243, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.754 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:243, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.754 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=243] [conn=3] [category=ddl] [job="ID:243, Type:modify column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.755 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:243, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.758 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=466] [neededSchemaVersion=467] ["start time"=492.486µs] [gotSchemaVersion=467] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.760 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=243] [version=467] [2024/05/06 09:47:21.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=467] ["take time"=6.935816ms] [job="ID:243, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.765 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:243, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.772 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=243] [jobType="modify column"] [2024/05/06 09:47:21.772 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=243] [conn=3] [job="ID:243, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.775 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=243] [2024/05/06 09:47:21.777 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:243, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.694 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.778 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=243] [2024/05/06 09:47:21.778 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.778 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=465] [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: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:47:21.779 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=467] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:21.783 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:244, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.783 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:244, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:21.792 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:244, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.792 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=244] [conn=3] [category=ddl] [job="ID:244, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.793 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.795 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=467] [neededSchemaVersion=468] ["start time"=484.113µs] [gotSchemaVersion=468] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.796 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=244] [version=468] [2024/05/06 09:47:21.796 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=468] ["take time"=2.074382ms] [job="ID:244, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.797 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.803 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.803 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=244] [conn=3] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.808 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.810 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=468] [neededSchemaVersion=469] ["start time"=449.977µs] [gotSchemaVersion=469] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.812 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=244] [version=469] [2024/05/06 09:47:21.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=469] ["take time"=6.979325ms] [job="ID:244, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.820 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.827 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.829 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=244] [conn=3] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.830 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:244, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.831 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574034951897088, conflictStartTS=449574034951897089, conflictCommitTS=449574034952159232, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=244}, originalKey=748000fffffffffffe5f7280000000000000f4, 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:47:21.831 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574034951897088, conflictStartTS=449574034951897089, conflictCommitTS=449574034952159232, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=244}, originalKey=748000fffffffffffe5f7280000000000000f4, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:21.831 +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=449574034951897088, conflictStartTS=449574034951897089, conflictCommitTS=449574034952159232, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=244}, originalKey=748000fffffffffffe5f7280000000000000f4, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:244, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.838 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:244, Type:modify column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.838 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=244] [conn=3] [category=ddl] [job="ID:244, Type:modify column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.839 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=244] [conn=3] [job="ID:244, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +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:47:21.839 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:244, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.840 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=244] [2024/05/06 09:47:21.840 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:244, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.846 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:244, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.846 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=244] [conn=3] [category=ddl] [job="ID:244, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.847 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:244, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.850 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=469] [neededSchemaVersion=471] ["start time"=489.947µs] [gotSchemaVersion=471] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.852 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=244] [version=471] [2024/05/06 09:47:21.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=471] ["take time"=10.537607ms] [job="ID:244, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.861 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:244, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.868 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=244] [jobType="modify column"] [2024/05/06 09:47:21.868 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=244] [conn=3] [job="ID:244, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.872 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=244] [2024/05/06 09:47:21.875 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=244] [2024/05/06 09:47:21.876 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.876 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:244, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.78 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.876 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=467] [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:47:21.888 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=471] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:21.898 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:245, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:21.898 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:245, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:21.907 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:245, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.907 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=245] [conn=3] [category=ddl] [job="ID:245, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.907 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.909 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=471] [neededSchemaVersion=472] ["start time"=452.588µs] [gotSchemaVersion=472] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.911 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=245] [version=472] [2024/05/06 09:47:21.911 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=472] ["take time"=2.017696ms] [job="ID:245, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.911 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.918 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.918 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=245] [conn=3] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.919 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.921 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=472] [neededSchemaVersion=473] ["start time"=459.204µs] [gotSchemaVersion=473] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.922 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=245] [version=473] [2024/05/06 09:47:21.926 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=473] ["take time"=5.630607ms] [job="ID:245, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.927 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:245, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.941 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:245, Type:modify column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.941 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=245] [conn=3] [category=ddl] [job="ID:245, Type:modify column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.942 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=245] [conn=3] [job="ID:245, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +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:47:21.942 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:245, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.943 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=245] [2024/05/06 09:47:21.944 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:245, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.952 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:245, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.952 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=245] [conn=3] [category=ddl] [job="ID:245, Type:modify column, State:rollingback, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.953 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:245, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.956 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=473] [neededSchemaVersion=474] ["start time"=460.662µs] [gotSchemaVersion=474] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:21.957 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=245] [version=474] [2024/05/06 09:47:21.958 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=474] ["take time"=2.158812ms] [job="ID:245, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.959 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:245, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.977 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=245] [jobType="modify column"] [2024/05/06 09:47:21.981 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=245] [conn=3] [job="ID:245, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.992 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=245] [2024/05/06 09:47:21.993 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:245, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.889 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:21.996 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=245] [2024/05/06 09:47:21.996 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:21.996 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=471] [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: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:47:21.996 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=474] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:22.001 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:246, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:22.002 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:246, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:22.012 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.012 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.019 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.052 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=474] [neededSchemaVersion=475] ["start time"=474.233µs] [gotSchemaVersion=475] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.055 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=246] [version=475] [2024/05/06 09:47:22.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=475] ["take time"=4.010284ms] [job="ID:246, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.059 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.065 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.065 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.066 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.068 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=475] [neededSchemaVersion=476] ["start time"=472.384µs] [gotSchemaVersion=476] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.070 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=246] [version=476] [2024/05/06 09:47: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=476] ["take time"=6.247826ms] [job="ID:246, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.084 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.092 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.092 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.093 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.096 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=476] [neededSchemaVersion=477] ["start time"=472.911µs] [gotSchemaVersion=477] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.098 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=246] [version=477] [2024/05/06 09:47:22.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=477] ["take time"=2.12577ms] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.099 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.105 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.108 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.109 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=246] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:22.112 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035025559552, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.113 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035024773120, conflictStartTS=449574035025035264, conflictCommitTS=449574035025297408, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=246}, originalKey=748000fffffffffffe5f7280000000000000f6, 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:47:22.113 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035024773120, conflictStartTS=449574035025035264, conflictCommitTS=449574035025297408, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=246}, originalKey=748000fffffffffffe5f7280000000000000f6, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:22.113 +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=449574035024773120, conflictStartTS=449574035025035264, conflictCommitTS=449574035025297408, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=246}, originalKey=748000fffffffffffe5f7280000000000000f6, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:246, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035025559552, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.119 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.119 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.120 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 10, tp add index"] [category=ddl] [jobID=246] [conn=3] [job="ID:246, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +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:47:22.120 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.122 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=246] [2024/05/06 09:47:22.123 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.130 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:246, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.130 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=246] [conn=3] [category=ddl] [job="ID:246, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.131 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:246, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.134 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=477] [neededSchemaVersion=478] ["start time"=500.788µs] [gotSchemaVersion=478] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.138 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=246] [version=478] [2024/05/06 09:47:22.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=478] ["take time"=5.749686ms] [job="ID:246, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.139 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.148 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=246] [jobType="modify column"] [2024/05/06 09:47:22.149 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=246] [conn=3] [job="ID:246, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.152 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=246] [2024/05/06 09:47:22.152 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:246, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:21.998 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.156 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=246] [2024/05/06 09:47:22.156 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:22.157 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=474] [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:47:22.157 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=478] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:22.159 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:247, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:22.159 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:247, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:22.168 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:247, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.168 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=247] [conn=3] [category=ddl] [job="ID:247, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.169 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.172 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=478] [neededSchemaVersion=479] ["start time"=467.03µs] [gotSchemaVersion=479] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.173 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=247] [version=479] [2024/05/06 09:47:22.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=479] ["take time"=14.041099ms] [job="ID:247, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.186 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.195 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.195 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=247] [conn=3] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.197 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.200 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=479] [neededSchemaVersion=480] ["start time"=451.845µs] [gotSchemaVersion=480] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.201 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=247] [version=480] [2024/05/06 09:47:22.201 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=480] ["take time"=2.056ms] [job="ID:247, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.202 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.216 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.216 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=247] [conn=3] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.218 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.225 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=480] [neededSchemaVersion=481] ["start time"=494.101µs] [gotSchemaVersion=481] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.227 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=247] [version=481] [2024/05/06 09:47:22.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=481] ["take time"=12.974418ms] [job="ID:247, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.238 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.247 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:247, Type:modify column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.247 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=247] [conn=3] [category=ddl] [job="ID:247, Type:modify column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.247 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 7, tp add index"] [category=ddl] [jobID=247] [conn=3] [job="ID:247, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +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:47:22.247 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:247, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.248 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=247] [2024/05/06 09:47:22.249 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.257 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:247, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.257 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=247] [conn=3] [category=ddl] [job="ID:247, Type:modify column, State:rollingback, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.258 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:247, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.260 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=481] [neededSchemaVersion=482] ["start time"=427.454µs] [gotSchemaVersion=482] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.261 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=247] [version=482] [2024/05/06 09:47:22.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=482] ["take time"=28.135288ms] [job="ID:247, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.289 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.295 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=247] [jobType="modify column"] [2024/05/06 09:47:22.296 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=247] [conn=3] [job="ID:247, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.303 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=247] [2024/05/06 09:47:22.304 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:247, Type:modify column, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.158 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.308 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=247] [2024/05/06 09:47:22.308 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:22.309 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=478] [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: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:47:22.309 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=482] [cur_db=test] [sql="alter table t modify column c11 char(10)"] [user=] [2024/05/06 09:47:22.312 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:248, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:22.312 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:248, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t modify column c11 char(10)"] [2024/05/06 09:47:22.320 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.320 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.322 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.324 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=482] [neededSchemaVersion=483] ["start time"=455.677µs] [gotSchemaVersion=483] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.326 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=248] [version=483] [2024/05/06 09:47:22.326 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=483] ["take time"=2.006627ms] [job="ID:248, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.327 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.334 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.334 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.335 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.351 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=483] [neededSchemaVersion=484] ["start time"=10.470505ms] [gotSchemaVersion=484] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.354 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=248] [version=484] [2024/05/06 09:47:22.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=484] ["take time"=14.042499ms] [job="ID:248, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.384 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.399 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.400 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.405 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.408 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=484] [neededSchemaVersion=485] ["start time"=622.619µs] [gotSchemaVersion=485] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.410 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=248] [version=485] [2024/05/06 09:47:22.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=485] ["take time"=5.103525ms] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.420 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.429 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.430 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.431 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=248] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:22.434 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.437 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=248] [2024/05/06 09:47:22.438 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.460 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.460 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.469 +00:00] [INFO] [column.go:1076] ["start to update table row"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_col_,CurrElementID:32,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:22.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:47:22.471 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="update column"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:22.471 +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:47:22.549 +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:47:22.549 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.549 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=248] [2024/05/06 09:47:22.550 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.587 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.587 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.638 +00:00] [INFO] [backfilling.go:330] ["backfill worker finish task"] [category=ddl] [worker="backfill-worker 0, tp update column"] [task="taskID: 1, physicalTableID: 111, range: [74800000000000006f5f728000000000000001, 74800000000000006f5f72800000000000080100), jobID: 248"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f7280000000000008010000] ["take time"=63.393325ms] [2024/05/06 09:47:22.638 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp update column"] [jobID=248] [2024/05/06 09:47:22.638 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:32,TypeKey:_col_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:22.655 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=736] [2024/05/06 09:47:22.655 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:736, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.657 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=248] [2024/05/06 09:47:22.657 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:736, ArgLen:8, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.665 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:736, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.665 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=248] [conn=3] [category=ddl] [job="ID:248, Type:modify column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:736, ArgLen:0, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.669 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:22.711 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:248, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:2, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.713 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=485] [neededSchemaVersion=486] ["start time"=432.606µs] [gotSchemaVersion=486] [phyTblIDs="[111]"] [actionTypes="[12]"] [diffTypes="[\"modify column\"]"] [2024/05/06 09:47:22.715 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=248] [version=486] [2024/05/06 09:47:22.718 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=486] ["take time"=5.335797ms] [job="ID:248, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:2, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.719 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:2, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.735 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=248] [jobType="modify column"] [2024/05/06 09:47:22.735 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=248] [conn=3] [job="ID:248, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:2, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:248, Type:modify column, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:2, start time: 2024-05-06 09:47:22.31 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574035109969920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:22.742 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=248] [2024/05/06 09:47:22.742 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:22.743 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=486] [cur_db=test] [sql="create table t_ref (c1 int key, c2 int, c3 int, c11 tinyint);"] [user=] [2024/05/06 09:47:22.749 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:250, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:249, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:22.749 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:250, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:249, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_ref (c1 int key, c2 int, c3 int, c11 tinyint);"] [2024/05/06 09:47:22.757 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:250, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:249, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.757 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=250] [conn=3] [category=ddl] [job="ID:250, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:249, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.758 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:250, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:249, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.764 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=486] [neededSchemaVersion=487] ["start time"=298.66µs] [gotSchemaVersion=487] [phyTblIDs="[249]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:22.766 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=250] [version=487] [2024/05/06 09:47:22.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=487] ["take time"=4.275181ms] [job="ID:250, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:249, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.769 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:250, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:249, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.794 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=250] [conn=3] [job="ID:250, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:249, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.798 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:250, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:249, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.744 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.798 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=250] [2024/05/06 09:47:22.798 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:22.799 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=487] [cur_db=test] [sql="alter table t add constraint fk foreign key a(c1) references t_ref(c1)"] [user=] [2024/05/06 09:47:22.808 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:251, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:22.808 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:251, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add constraint fk foreign key a(c1) references t_ref(c1)"] [2024/05/06 09:47:22.824 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:251, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.826 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=251] [conn=3] [category=ddl] [job="ID:251, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.826 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:251, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.828 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035213254656, conflictStartTS=449574035213254657, conflictCommitTS=449574035213516800, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=251}, originalKey=748000fffffffffffe5f7280000000000000fb, 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:47:22.828 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035213254656, conflictStartTS=449574035213254657, conflictCommitTS=449574035213516800, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=251}, originalKey=748000fffffffffffe5f7280000000000000fb, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:22.828 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035213254656, conflictStartTS=449574035213254657, conflictCommitTS=449574035213516800, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=251}, originalKey=748000fffffffffffe5f7280000000000000fb, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:251, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.831 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:251, Type:add foreign key, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.831 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=251] [conn=3] [category=ddl] [job="ID:251, Type:add foreign key, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.831 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=251] [conn=3] [job="ID:251, Type:add foreign key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:22.832 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:251, Type:add foreign key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.832 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=251] [conn=3] [job="ID:251, Type:add foreign key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.835 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:251, Type:add foreign key, State:cancelled, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.8 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.835 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=251] [2024/05/06 09:47:22.835 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:22.835 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=487] [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).CreateForeignKey\n\tpkg/ddl/ddl_api.go:7926\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3943\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:47:22.878 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=487] [cur_db=test] [sql="alter table t add constraint fk foreign key a(c1) references t_ref(c1)"] [user=] [2024/05/06 09:47:22.889 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:252, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:22.889 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:252, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t add constraint fk foreign key a(c1) references t_ref(c1)"] [2024/05/06 09:47:22.911 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:252, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.911 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=252] [conn=3] [category=ddl] [job="ID:252, Type:add foreign key, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.914 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.916 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=487] [neededSchemaVersion=489] ["start time"=475.92µs] [gotSchemaVersion=489] [phyTblIDs="[111]"] [actionTypes="[9]"] [diffTypes="[\"add foreign key\"]"] [2024/05/06 09:47:22.917 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=252] [version=489] [2024/05/06 09:47:22.918 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=489] ["take time"=2.409415ms] [job="ID:252, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.920 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.924 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.924 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=252] [conn=3] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.959 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.961 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=489] [neededSchemaVersion=490] ["start time"=498.403µs] [gotSchemaVersion=490] [phyTblIDs="[111]"] [actionTypes="[9]"] [diffTypes="[\"add foreign key\"]"] [2024/05/06 09:47:22.963 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=252] [version=490] [2024/05/06 09:47:22.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=490] ["take time"=14.42874ms] [job="ID:252, Type:add foreign key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.976 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.980 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.980 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=252] [conn=3] [category=ddl] [job="ID:252, Type:add foreign key, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.987 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:252, Type:add foreign key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:22.991 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=490] [neededSchemaVersion=491] ["start time"=501.369µs] [gotSchemaVersion=491] [phyTblIDs="[111]"] [actionTypes="[9]"] [diffTypes="[\"add foreign key\"]"] [2024/05/06 09:47:22.993 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=252] [version=491] [2024/05/06 09:47:23.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=491] ["take time"=10.953222ms] [job="ID:252, Type:add foreign key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.002 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:252, Type:add foreign key, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.009 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=252] [conn=3] [job="ID:252, Type:add foreign key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.013 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:252, Type:add foreign key, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:22.881 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.013 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=252] [2024/05/06 09:47:23.013 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.014 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=491] [cur_db=test] [sql="alter table t drop foreign key fk"] [user=] [2024/05/06 09:47:23.027 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:253, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.027 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:253, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop foreign key fk"] [2024/05/06 09:47:23.037 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:253, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.041 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=253] [conn=3] [category=ddl] [job="ID:253, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.048 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:253, Type:drop foreign key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.050 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035269091328, conflictStartTS=449574035269353472, conflictCommitTS=449574035269615616, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=253}, originalKey=748000fffffffffffe5f7280000000000000fd, 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:47:23.050 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035269091328, conflictStartTS=449574035269353472, conflictCommitTS=449574035269615616, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=253}, originalKey=748000fffffffffffe5f7280000000000000fd, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.050 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035269091328, conflictStartTS=449574035269353472, conflictCommitTS=449574035269615616, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=253}, originalKey=748000fffffffffffe5f7280000000000000fd, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:253, Type:drop foreign key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.056 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:253, Type:drop foreign key, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.056 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=253] [conn=3] [category=ddl] [job="ID:253, Type:drop foreign key, State:cancelling, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.056 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=253] [conn=3] [job="ID:253, Type:drop foreign key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.056 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:253, Type:drop foreign key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.056 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=253] [conn=3] [job="ID:253, Type:drop foreign key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.060 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:253, Type:drop foreign key, State:cancelled, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.015 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.063 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=253] [2024/05/06 09:47:23.063 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.063 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=491] [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).DropForeignKey\n\tpkg/ddl/ddl_api.go:7956\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3959\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:47:23.063 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=491] [cur_db=test] [sql="alter table t drop foreign key fk"] [user=] [2024/05/06 09:47:23.068 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:254, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.068 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:254, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t drop foreign key fk"] [2024/05/06 09:47:23.077 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:254, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.077 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=254] [conn=3] [category=ddl] [job="ID:254, Type:drop foreign key, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.096 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:254, Type:drop foreign key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.097 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=491] [neededSchemaVersion=492] ["start time"=44.5µs] [gotSchemaVersion=491] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:23.099 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=491] [neededSchemaVersion=493] ["start time"=488.079µs] [gotSchemaVersion=493] [phyTblIDs="[111]"] [actionTypes="[10]"] [diffTypes="[\"drop foreign key\"]"] [2024/05/06 09:47:23.101 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=254] [version=493] [2024/05/06 09:47:23.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=493] ["take time"=10.824861ms] [job="ID:254, Type:drop foreign key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.110 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:254, Type:drop foreign key, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.125 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=254] [conn=3] [job="ID:254, Type:drop foreign key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.129 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:254, Type:drop foreign key, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.064 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.129 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=254] [2024/05/06 09:47:23.129 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.130 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=493] [cur_db=test] [sql="create table t_rename1 (c1 bigint , c2 bigint);"] [user=] [2024/05/06 09:47:23.135 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:256, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.137 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:256, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_rename1 (c1 bigint , c2 bigint);"] [2024/05/06 09:47:23.169 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:256, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.169 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=256] [conn=3] [category=ddl] [job="ID:256, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.173 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:256, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.175 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=493] [neededSchemaVersion=494] ["start time"=236.18µs] [gotSchemaVersion=494] [phyTblIDs="[255]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:23.177 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=256] [version=494] [2024/05/06 09:47:23.181 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=494] ["take time"=5.976298ms] [job="ID:256, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.182 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:256, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.188 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=256] [conn=3] [job="ID:256, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.191 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:256, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.131 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.192 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=256] [2024/05/06 09:47:23.192 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.192 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=494] [cur_db=test] [sql="create table t_rename2 (c1 bigint , c2 bigint);"] [user=] [2024/05/06 09:47:23.195 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:258, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:257, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.195 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:258, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:257, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_rename2 (c1 bigint , c2 bigint);"] [2024/05/06 09:47:23.213 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:258, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.213 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=258] [conn=3] [category=ddl] [job="ID:258, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.216 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:258, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.218 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=494] [neededSchemaVersion=495] ["start time"=212.633µs] [gotSchemaVersion=495] [phyTblIDs="[257]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:23.219 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=258] [version=495] [2024/05/06 09:47: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=495] ["take time"=2.01253ms] [job="ID:258, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.220 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:258, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.231 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=258] [conn=3] [job="ID:258, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.237 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:258, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.194 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.237 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=258] [2024/05/06 09:47:23.237 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.237 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=495] [cur_db=test] [sql="rename table t_rename1 to t_rename11"] [user=] [2024/05/06 09:47:23.242 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:259, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.242 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:259, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="rename table t_rename1 to t_rename11"] [2024/05/06 09:47:23.251 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:259, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.253 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=259] [conn=3] [category=ddl] [job="ID:259, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.253 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:259, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.255 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035325190144, conflictStartTS=449574035325190145, conflictCommitTS=449574035325452288, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=259}, originalKey=748000fffffffffffe5f728000000000000103, 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:47:23.255 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035325190144, conflictStartTS=449574035325190145, conflictCommitTS=449574035325452288, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=259}, originalKey=748000fffffffffffe5f728000000000000103, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.255 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035325190144, conflictStartTS=449574035325190145, conflictCommitTS=449574035325452288, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=259}, originalKey=748000fffffffffffe5f728000000000000103, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:259, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.261 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:259, Type:rename table, State:cancelling, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.261 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=259] [conn=3] [category=ddl] [job="ID:259, Type:rename table, State:cancelling, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.261 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=259] [conn=3] [job="ID:259, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.261 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:259, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.262 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=259] [conn=3] [job="ID:259, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.264 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:259, Type:rename table, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.239 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.265 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=259] [2024/05/06 09:47:23.265 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.265 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=495] [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).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.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:47:23.265 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=495] [cur_db=test] [sql="rename table t_rename1 to t_rename11"] [user=] [2024/05/06 09:47:23.268 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:260, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.268 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:260, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="rename table t_rename1 to t_rename11"] [2024/05/06 09:47:23.279 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:260, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.279 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=260] [conn=3] [category=ddl] [job="ID:260, Type:rename table, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.280 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:260, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.282 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=495] [neededSchemaVersion=497] ["start time"=263.698µs] [gotSchemaVersion=497] [phyTblIDs="[255]"] [actionTypes="[14]"] [diffTypes="[\"rename table\"]"] [2024/05/06 09:47:23.284 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=260] [version=497] [2024/05/06 09:47:23.287 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=497] ["take time"=4.737002ms] [job="ID:260, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.288 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:260, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.303 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:260, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.303 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=260] [conn=3] [category=ddl] [job="ID:260, Type:rename table, State:running, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.308 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:260, Type:rename table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.318 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=497] [neededSchemaVersion=498] ["start time"=261.744µs] [gotSchemaVersion=498] [phyTblIDs="[255]"] [actionTypes="[14]"] [diffTypes="[\"rename table\"]"] [2024/05/06 09:47:23.319 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=260] [version=498] [2024/05/06 09:47:23.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=498] ["take time"=5.979584ms] [job="ID:260, Type:rename table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.324 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:260, Type:rename table, State:done, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.331 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=260] [conn=3] [job="ID:260, Type:rename table, State:synced, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.338 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:260, Type:rename table, State:synced, SchemaState:public, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.266 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.338 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=260] [2024/05/06 09:47:23.338 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.339 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=498] [cur_db=test] [sql="rename table t_rename11 to t_rename111, t_rename2 to t_rename22"] [user=] [2024/05/06 09:47:23.341 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:261, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.341 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:261, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="rename table t_rename11 to t_rename111, t_rename2 to t_rename22"] [2024/05/06 09:47:23.351 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:261, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.354 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=261] [conn=3] [category=ddl] [job="ID:261, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.355 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:261, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.356 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035351404544, conflictStartTS=449574035351404545, conflictCommitTS=449574035351666688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=261}, originalKey=748000fffffffffffe5f728000000000000105, 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:47:23.356 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035351404544, conflictStartTS=449574035351404545, conflictCommitTS=449574035351666688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=261}, originalKey=748000fffffffffffe5f728000000000000105, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.356 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035351404544, conflictStartTS=449574035351404545, conflictCommitTS=449574035351666688, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=261}, originalKey=748000fffffffffffe5f728000000000000105, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:261, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.359 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:261, Type:rename tables, State:cancelling, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.359 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=261] [conn=3] [category=ddl] [job="ID:261, Type:rename tables, State:cancelling, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.359 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=261] [conn=3] [job="ID:261, Type:rename tables, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.359 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:261, Type:rename tables, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.360 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=261] [conn=3] [job="ID:261, Type:rename tables, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.362 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:261, Type:rename tables, State:cancelled, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.34 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.363 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=261] [2024/05/06 09:47:23.363 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.363 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=498] [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).renameTables\n\tpkg/ddl/ddl_api.go:7267\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).RenameTable\n\tpkg/ddl/ddl_api.go:7169\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.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:47:23.363 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=498] [cur_db=test] [sql="rename table t_rename11 to t_rename111, t_rename2 to t_rename22"] [user=] [2024/05/06 09:47:23.366 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:262, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.366 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:262, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="rename table t_rename11 to t_rename111, t_rename2 to t_rename22"] [2024/05/06 09:47:23.377 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:262, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.377 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=262] [conn=3] [category=ddl] [job="ID:262, Type:rename tables, State:queueing, SchemaState:none, SchemaID:2, TableID:255, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.381 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:262, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.382 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=498] [neededSchemaVersion=499] ["start time"=43.614µs] [gotSchemaVersion=498] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:23.386 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=498] [neededSchemaVersion=500] ["start time"=406.832µs] [gotSchemaVersion=500] [phyTblIDs="[255,257]"] [actionTypes="[47,47]"] [diffTypes="[\"rename tables\"]"] [2024/05/06 09:47:23.388 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=262] [version=500] [2024/05/06 09:47:23.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=500] ["take time"=13.375309ms] [job="ID:262, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.400 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:262, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.407 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:262, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.407 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=262] [conn=3] [category=ddl] [job="ID:262, Type:rename tables, State:running, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.408 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:262, Type:rename tables, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.411 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=500] [neededSchemaVersion=501] ["start time"=365.312µs] [gotSchemaVersion=501] [phyTblIDs="[255,257]"] [actionTypes="[47,47]"] [diffTypes="[\"rename tables\"]"] [2024/05/06 09:47:23.412 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=262] [version=501] [2024/05/06 09:47:23.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=501] ["take time"=6.895978ms] [job="ID:262, Type:rename tables, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.418 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:262, Type:rename tables, State:done, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:5, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.424 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=262] [conn=3] [job="ID:262, Type:rename tables, State:synced, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.428 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:262, Type:rename tables, State:synced, SchemaState:public, SchemaID:2, TableID:257, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.365 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.428 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=262] [2024/05/06 09:47:23.428 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.429 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=501] [cur_db=test] [sql="create table t_cs(a varchar(10)) charset utf8"] [user=] [2024/05/06 09:47:23.431 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:264, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.431 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:264, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create table t_cs(a varchar(10)) charset utf8"] [2024/05/06 09:47:23.441 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:264, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.441 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=264] [conn=3] [category=ddl] [job="ID:264, Type:create table, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.442 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:264, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.444 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=501] [neededSchemaVersion=502] ["start time"=223.48µs] [gotSchemaVersion=502] [phyTblIDs="[263]"] [actionTypes="[3]"] [diffTypes="[\"create table\"]"] [2024/05/06 09:47:23.445 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=264] [version=502] [2024/05/06 09:47:23.447 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=502] ["take time"=3.880155ms] [job="ID:264, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.452 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:264, Type:create table, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.458 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=264] [conn=3] [job="ID:264, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.461 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:264, Type:create table, State:synced, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.43 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.461 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=264] [2024/05/06 09:47:23.461 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.462 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=502] [cur_db=test] [sql="alter table t_cs convert to charset utf8mb4"] [user=] [2024/05/06 09:47:23.464 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:265, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.464 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_cs convert to charset utf8mb4"] [2024/05/06 09:47:23.475 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.481 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=265] [conn=3] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.482 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.484 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035383910400, conflictStartTS=449574035383910401, conflictCommitTS=449574035384172544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=265}, originalKey=748000fffffffffffe5f728000000000000109, 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:47:23.484 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035383910400, conflictStartTS=449574035383910401, conflictCommitTS=449574035384172544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=265}, originalKey=748000fffffffffffe5f728000000000000109, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.484 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035383910400, conflictStartTS=449574035383910401, conflictCommitTS=449574035384172544, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=265}, originalKey=748000fffffffffffe5f728000000000000109, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:265, Type:modify table charset and collate, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.490 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:cancelling, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.490 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=265] [conn=3] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:cancelling, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.491 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=265] [conn=3] [job="ID:265, Type:modify table charset and collate, State:cancelled, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.491 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:cancelled, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.491 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=265] [conn=3] [job="ID:265, Type:modify table charset and collate, State:cancelled, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.494 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:265, Type:modify table charset and collate, State:cancelled, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.463 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.495 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=265] [2024/05/06 09:47:23.495 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.495 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=502] [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).AlterTableCharsetAndCollate\n\tpkg/ddl/ddl_api.go:6496\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:4008\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:47:23.495 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=502] [cur_db=test] [sql="alter table t_cs convert to charset utf8mb4"] [user=] [2024/05/06 09:47:23.508 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:266, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.508 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_cs convert to charset utf8mb4"] [2024/05/06 09:47:23.516 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.516 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=266] [conn=3] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:queueing, SchemaState:none, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.517 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.519 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=502] [neededSchemaVersion=504] ["start time"=212.003µs] [gotSchemaVersion=504] [phyTblIDs="[263]"] [actionTypes="[22]"] [diffTypes="[\"modify table charset and collate\"]"] [2024/05/06 09:47:23.520 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=266] [version=504] [2024/05/06 09:47:23.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=504] ["take time"=2.764823ms] [job="ID:266, Type:modify table charset and collate, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.522 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:done, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:3, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.528 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=266] [conn=3] [job="ID:266, Type:modify table charset and collate, State:synced, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.532 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:266, Type:modify table charset and collate, State:synced, SchemaState:public, SchemaID:2, TableID:263, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.496 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.532 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=266] [2024/05/06 09:47:23.532 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.533 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=504] [cur_db=test] [sql="create database db_coll default charset utf8 collate utf8_bin"] [user=] [2024/05/06 09:47:23.535 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:268, Type:create schema, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.535 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:268, Type:create schema, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="create database db_coll default charset utf8 collate utf8_bin"] [2024/05/06 09:47:23.544 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:268, Type:create schema, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.544 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=268] [conn=3] [category=ddl] [job="ID:268, Type:create schema, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.552 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:268, Type:create schema, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.554 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=504] [neededSchemaVersion=505] ["start time"=75.173µs] [gotSchemaVersion=505] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"create schema\"]"] [2024/05/06 09:47:23.555 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=268] [version=505] [2024/05/06 09:47:23.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=505] ["take time"=7.130988ms] [job="ID:268, Type:create schema, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.566 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:268, Type:create schema, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.571 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=268] [conn=3] [job="ID:268, Type:create schema, State:synced, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.574 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:268, Type:create schema, State:synced, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.535 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.576 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=268] [2024/05/06 09:47:23.576 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.579 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:269, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.579 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter database db_coll charset utf8mb4 collate utf8mb4_bin"] [2024/05/06 09:47:23.589 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.595 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=269] [conn=3] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.596 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.597 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035413794817, conflictStartTS=449574035414056960, conflictCommitTS=449574035414319104, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=269}, originalKey=748000fffffffffffe5f72800000000000010d, 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:47:23.597 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035413794817, conflictStartTS=449574035414056960, conflictCommitTS=449574035414319104, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=269}, originalKey=748000fffffffffffe5f72800000000000010d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.597 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035413794817, conflictStartTS=449574035414056960, conflictCommitTS=449574035414319104, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=269}, originalKey=748000fffffffffffe5f72800000000000010d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:269, Type:modify schema charset and collate, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.604 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:cancelling, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.604 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=269] [conn=3] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:cancelling, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.604 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=269] [conn=3] [job="ID:269, Type:modify schema charset and collate, State:cancelled, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.604 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:cancelled, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.604 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=269] [conn=3] [job="ID:269, Type:modify schema charset and collate, State:cancelled, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.607 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:269, Type:modify schema charset and collate, State:cancelled, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.578 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.609 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=269] [2024/05/06 09:47:23.609 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.610 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=505] [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).ModifySchemaCharsetAndCollate\n\tpkg/ddl/ddl_api.go:264\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterSchema\n\tpkg/ddl/ddl_api.go:606\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).executeAlterDatabase\n\tpkg/executor/ddl.go:263\ngithub.com/pingcap/tidb/pkg/executor.(*DDLExec).Next\n\tpkg/executor/ddl.go:150\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:47:23.613 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:270, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.613 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter database db_coll charset utf8mb4 collate utf8mb4_bin"] [2024/05/06 09:47:23.627 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.627 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=270] [conn=3] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:queueing, SchemaState:none, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.627 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.631 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=505] [neededSchemaVersion=507] ["start time"=98.934µs] [gotSchemaVersion=507] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[\"modify schema charset and collate\"]"] [2024/05/06 09:47:23.637 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=270] [version=507] [2024/05/06 09:47:23.637 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=507] ["take time"=6.011666ms] [job="ID:270, Type:modify schema charset and collate, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.643 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:done, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.649 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=270] [conn=3] [job="ID:270, Type:modify schema charset and collate, State:synced, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.654 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:270, Type:modify schema charset and collate, State:synced, SchemaState:public, SchemaID:267, TableID:0, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.612 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.656 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=270] [2024/05/06 09:47:23.656 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.657 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=507] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.660 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:272, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.660 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:272, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.676 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:272, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.679 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=272] [conn=3] [category=ddl] [job="ID:272, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.683 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:272, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.684 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035436601344, conflictStartTS=449574035436601345, conflictCommitTS=449574035437125632, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=272}, originalKey=748000fffffffffffe5f728000000000000110, 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:47:23.684 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035436601344, conflictStartTS=449574035436601345, conflictCommitTS=449574035437125632, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=272}, originalKey=748000fffffffffffe5f728000000000000110, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:23.684 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035436601344, conflictStartTS=449574035436601345, conflictCommitTS=449574035437125632, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=272}, originalKey=748000fffffffffffe5f728000000000000110, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:272, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.689 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:272, Type:truncate partition, State:cancelling, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.689 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=272] [conn=3] [category=ddl] [job="ID:272, Type:truncate partition, State:cancelling, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.689 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=272] [conn=3] [job="ID:272, Type:truncate partition, State:cancelled, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:23.689 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:272, Type:truncate partition, State:cancelled, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.690 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=272] [conn=3] [job="ID:272, Type:truncate partition, State:cancelled, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.703 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:272, Type:truncate partition, State:cancelled, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.659 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.705 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=272] [2024/05/06 09:47:23.705 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:23.705 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=507] [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).TruncateTablePartition\n\tpkg/ddl/ddl_api.go:5025\ngithub.com/pingcap/tidb/pkg/ddl.(*ddl).AlterTable\n\tpkg/ddl/ddl_api.go:3910\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:47:23.705 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=507] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.709 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:274, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.709 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:274, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.716 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:274, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=274] [conn=3] [category=ddl] [job="ID:274, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.719 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:274, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.729 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=507] [neededSchemaVersion=509] ["start time"=8.466189ms] [gotSchemaVersion=509] [phyTblIDs="[108]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:23.732 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=274] [version=509] [2024/05/06 09:47:23.733 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=509] ["take time"=12.455533ms] [job="ID:274, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.734 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:274, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.746 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=274] [tableIDs="[108]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:23.747 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=274] [jobType="truncate partition"] [2024/05/06 09:47:23.747 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=274] [conn=3] [job="ID:274, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.750 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:274, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.708 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.758 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=274] [elementID=1] [startKey=74800000000000006c] [endKey=74800000000000006d] [2024/05/06 09:47:23.758 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=274] [2024/05/06 09:47:23.758 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.759 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=509] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.762 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:276, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.762 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:276, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.771 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:276, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.771 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=276] [conn=3] [category=ddl] [job="ID:276, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.779 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:276, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.791 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=509] [neededSchemaVersion=510] ["start time"=8.230024ms] [gotSchemaVersion=510] [phyTblIDs="[273]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:23.809 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=276] [version=510] [2024/05/06 09:47:23.811 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=510] ["take time"=29.49448ms] [job="ID:276, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.812 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:276, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.818 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=276] [tableIDs="[273]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:23.819 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=276] [jobType="truncate partition"] [2024/05/06 09:47:23.819 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=276] [conn=3] [job="ID:276, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.824 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=276] [elementID=1] [startKey=748000000000000111] [endKey=748000000000000112] [2024/05/06 09:47:23.825 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:276, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.761 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.841 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=276] [2024/05/06 09:47:23.841 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.842 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=510] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.845 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:278, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.845 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:278, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.852 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:278, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.852 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=278] [conn=3] [category=ddl] [job="ID:278, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.853 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:278, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.864 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=510] [neededSchemaVersion=511] ["start time"=8.407893ms] [gotSchemaVersion=511] [phyTblIDs="[275]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:23.865 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=278] [version=511] [2024/05/06 09:47:23.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=511] ["take time"=15.910758ms] [job="ID:278, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.872 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:278, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.878 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=278] [tableIDs="[275]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:23.879 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=278] [jobType="truncate partition"] [2024/05/06 09:47:23.879 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=278] [conn=3] [job="ID:278, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.882 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:278, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.844 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.888 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=278] [elementID=1] [startKey=748000000000000113] [endKey=748000000000000114] [2024/05/06 09:47:23.889 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=278] [2024/05/06 09:47:23.889 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.889 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=511] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.892 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:280, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.892 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:280, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.901 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:280, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.901 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=280] [conn=3] [category=ddl] [job="ID:280, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.902 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:280, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.912 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=511] [neededSchemaVersion=512] ["start time"=7.924909ms] [gotSchemaVersion=512] [phyTblIDs="[277]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:23.914 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=280] [version=512] [2024/05/06 09:47:23.918 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=512] ["take time"=13.845316ms] [job="ID:280, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.919 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:280, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.933 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=280] [tableIDs="[277]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:23.936 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=280] [jobType="truncate partition"] [2024/05/06 09:47:23.937 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=280] [conn=3] [job="ID:280, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.950 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:280, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.891 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.955 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=280] [elementID=1] [startKey=748000000000000115] [endKey=748000000000000116] [2024/05/06 09:47:23.958 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=280] [2024/05/06 09:47:23.958 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:23.958 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=512] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:23.961 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:282, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:23.961 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:282, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:23.973 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:282, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.973 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=282] [conn=3] [category=ddl] [job="ID:282, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.974 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:282, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.984 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=512] [neededSchemaVersion=513] ["start time"=8.637194ms] [gotSchemaVersion=513] [phyTblIDs="[279]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:23.988 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=282] [version=513] [2024/05/06 09:47:23.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=513] ["take time"=14.334752ms] [job="ID:282, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.991 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:282, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:23.997 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=282] [tableIDs="[279]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:23.998 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=282] [jobType="truncate partition"] [2024/05/06 09:47:23.998 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=282] [conn=3] [job="ID:282, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.001 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:282, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:23.96 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.003 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=282] [elementID=1] [startKey=748000000000000117] [endKey=748000000000000118] [2024/05/06 09:47:24.004 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=282] [2024/05/06 09:47:24.004 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:24.004 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=513] [cur_db=test] [sql="alter table t_partition truncate partition p3"] [user=] [2024/05/06 09:47:24.007 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:284, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false; "] [table=true] [2024/05/06 09:47:24.007 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:284, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:2, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [query="alter table t_partition truncate partition p3"] [2024/05/06 09:47:24.015 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:284, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.015 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=284] [conn=3] [category=ddl] [job="ID:284, Type:truncate partition, State:queueing, SchemaState:public, SchemaID:2, TableID:104, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.016 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:284, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=513] [neededSchemaVersion=514] ["start time"=7.964764ms] [gotSchemaVersion=514] [phyTblIDs="[281]"] [actionTypes="[23]"] [diffTypes="[\"truncate partition\"]"] [2024/05/06 09:47:24.027 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=284] [version=514] [2024/05/06 09:47:24.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=514] ["take time"=10.05253ms] [job="ID:284, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.030 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:284, Type:truncate partition, State:done, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.039 +00:00] [INFO] [delete_range.go:447] ["insert into delete-range table"] [category=ddl] [jobID=284] [tableIDs="[281]"] [comment="drop partition: physical table ID(s)"] [2024/05/06 09:47:24.040 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=284] [jobType="truncate partition"] [2024/05/06 09:47:24.040 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=284] [conn=3] [job="ID:284, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.048 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:284, Type:truncate partition, State:synced, SchemaState:none, SchemaID:2, TableID:104, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.006 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false"] [2024/05/06 09:47:24.050 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=284] [elementID=1] [startKey=748000000000000119] [endKey=74800000000000011a] [2024/05/06 09:47:24.051 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=284] [2024/05/06 09:47:24.051 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:24.052 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=514] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.054 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:285, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.054 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.062 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.067 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=285] [conn=3] [category=ddl] [job="ID:285, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.067 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:285, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":33,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.069 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.070 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035537788928, conflictStartTS=449574035537788930, conflictCommitTS=449574035538313216, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=285}, originalKey=748000fffffffffffe5f72800000000000011d, 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:47:24.070 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035537788928, conflictStartTS=449574035537788930, conflictCommitTS=449574035538313216, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=285}, originalKey=748000fffffffffffe5f72800000000000011d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:24.070 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035537788928, conflictStartTS=449574035537788930, conflictCommitTS=449574035538313216, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=285}, originalKey=748000fffffffffffe5f72800000000000011d, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:285, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.076 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.076 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=285] [conn=3] [job="ID:285, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +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:47:24.076 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.091 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=285] [2024/05/06 09:47:24.092 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.110 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.110 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.112 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=285] [2024/05/06 09:47:24.113 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.117 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=285] [conn=3] [job="ID:285, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.127 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=285] [2024/05/06 09:47:24.128 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:285, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.053 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.128 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=285] [2024/05/06 09:47:24.128 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.128 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=514] [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.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:47:24.129 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=514] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.137 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:286, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.137 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.147 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.147 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [category=ddl] [job="ID:286, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.147 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:286, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":33,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.148 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.150 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=514] [neededSchemaVersion=516] ["start time"=336.147µs] [gotSchemaVersion=516] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.151 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=286] [version=516] [2024/05/06 09:47:24.169 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=516] ["take time"=19.791081ms] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.170 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.177 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.181 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [category=ddl] [job="ID:286, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.182 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.184 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035567935488, conflictStartTS=449574035567935489, conflictCommitTS=449574035568197634, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=286}, originalKey=748000fffffffffffe5f72800000000000011e, 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:47:24.184 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035567935488, conflictStartTS=449574035567935489, conflictCommitTS=449574035568197634, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=286}, originalKey=748000fffffffffffe5f72800000000000011e, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:24.184 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035567935488, conflictStartTS=449574035567935489, conflictCommitTS=449574035568197634, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=286}, originalKey=748000fffffffffffe5f72800000000000011e, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:286, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.192 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.192 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +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:47:24.192 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.203 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=286] [2024/05/06 09:47:24.204 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.210 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.210 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [category=ddl] [job="ID:286, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.211 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [job="ID:286, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:24.211 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.214 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=286] [2024/05/06 09:47:24.215 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.220 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.220 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [category=ddl] [job="ID:286, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.223 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.226 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=516] [neededSchemaVersion=518] ["start time"=472.179µs] [gotSchemaVersion=518] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.228 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=286] [version=518] [2024/05/06 09:47:24.228 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=518] ["take time"=2.602006ms] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.229 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.241 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.242 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [category=ddl] [job="ID:286, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.242 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.245 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=518] [neededSchemaVersion=519] ["start time"=468.004µs] [gotSchemaVersion=519] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.246 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=286] [version=519] [2024/05/06 09:47:24.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=519] ["take time"=4.628803ms] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.252 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.263 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.263 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.265 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=286] [2024/05/06 09:47:24.265 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.273 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=286] [conn=3] [job="ID:286, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.276 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=286] [2024/05/06 09:47:24.276 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:286, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.13 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.276 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=286] [2024/05/06 09:47:24.277 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.277 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=514] [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.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:47:24.277 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=519] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.280 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:287, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.280 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.294 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.294 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [category=ddl] [job="ID:287, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.295 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:287, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":34,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.296 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.301 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=519] [neededSchemaVersion=520] ["start time"=484.697µs] [gotSchemaVersion=520] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.303 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=287] [version=520] [2024/05/06 09:47:24.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=520] ["take time"=4.915289ms] [job="ID:287, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.311 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.329 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.329 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +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:47:24.329 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.332 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=287] [2024/05/06 09:47:24.333 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.339 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.339 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [category=ddl] [job="ID:287, Type:add column, State:cancelling, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.339 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [job="ID:287, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:24.339 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.341 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=287] [2024/05/06 09:47:24.341 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.345 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.345 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [category=ddl] [job="ID:287, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.346 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.348 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=520] [neededSchemaVersion=521] ["start time"=465.227µs] [gotSchemaVersion=521] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.350 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=287] [version=521] [2024/05/06 09:47: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=521] ["take time"=4.927958ms] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.355 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.360 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.360 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [category=ddl] [job="ID:287, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.361 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.366 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=521] [neededSchemaVersion=522] ["start time"=448.681µs] [gotSchemaVersion=522] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.368 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=287] [version=522] [2024/05/06 09:47:24.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=522] ["take time"=4.862508ms] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.379 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.396 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.396 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.398 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=287] [2024/05/06 09:47:24.399 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.409 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=287] [conn=3] [job="ID:287, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.413 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=287] [2024/05/06 09:47:24.413 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:287, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.278 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.414 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=287] [2024/05/06 09:47:24.414 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.414 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=519] [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.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:47:24.414 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=522] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.421 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:288, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.421 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.435 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.436 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.436 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:288, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":35,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.448 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.450 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=522] [neededSchemaVersion=523] ["start time"=493.177µs] [gotSchemaVersion=523] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.451 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=288] [version=523] [2024/05/06 09:47:24.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=523] ["take time"=21.430756ms] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.478 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.488 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.488 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.492 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.495 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=523] [neededSchemaVersion=524] ["start time"=535.227µs] [gotSchemaVersion=524] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.496 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=288] [version=524] [2024/05/06 09:47:24.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=524] ["take time"=4.27181ms] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.508 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.511 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.514 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.515 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035654705152, conflictStartTS=449574035654967296, conflictCommitTS=449574035655229441, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=288}, originalKey=748000fffffffffffe5f728000000000000120, 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:47:24.515 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035654705152, conflictStartTS=449574035654967296, conflictCommitTS=449574035655229441, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=288}, originalKey=748000fffffffffffe5f728000000000000120, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:24.515 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035654705152, conflictStartTS=449574035654967296, conflictCommitTS=449574035655229441, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=288}, originalKey=748000fffffffffffe5f728000000000000120, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:288, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.519 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.520 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +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:47:24.520 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.521 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=288] [2024/05/06 09:47:24.521 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.527 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.527 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.532 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [job="ID:288, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:24.532 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.533 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=524] [neededSchemaVersion=525] ["start time"=40.907µs] [gotSchemaVersion=524] [phyTblIDs="[]"] [actionTypes="[]"] [diffTypes="[]"] [2024/05/06 09:47:24.538 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=524] [neededSchemaVersion=526] ["start time"=509.912µs] [gotSchemaVersion=526] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.539 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=288] [version=526] [2024/05/06 09:47:24.551 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=526] ["take time"=14.328909ms] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.552 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.558 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.558 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.560 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.562 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=526] [neededSchemaVersion=527] ["start time"=468.307µs] [gotSchemaVersion=527] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.564 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=288] [version=527] [2024/05/06 09:47:24.569 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=527] ["take time"=7.284687ms] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.571 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.577 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.577 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [category=ddl] [job="ID:288, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.588 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.592 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=527] [neededSchemaVersion=528] ["start time"=494.082µs] [gotSchemaVersion=528] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.593 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=288] [version=528] [2024/05/06 09:47:24.593 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=528] ["take time"=2.565351ms] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.597 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.603 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.603 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.605 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=288] [2024/05/06 09:47:24.606 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.614 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=288] [conn=3] [job="ID:288, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.618 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=288] [2024/05/06 09:47:24.618 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:288, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.416 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.619 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=288] [2024/05/06 09:47:24.619 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.619 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=522] [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.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:47:24.619 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=528] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.624 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:289, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.624 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.634 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.634 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [category=ddl] [job="ID:289, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.635 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:289, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":36,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.635 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.637 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=528] [neededSchemaVersion=529] ["start time"=449.067µs] [gotSchemaVersion=529] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.639 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=289] [version=529] [2024/05/06 09:47:24.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=529] ["take time"=2.010701ms] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.643 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.647 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.647 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [category=ddl] [job="ID:289, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.648 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.650 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=529] [neededSchemaVersion=530] ["start time"=457.539µs] [gotSchemaVersion=530] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.652 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=289] [version=530] [2024/05/06 09:47:24.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=530] ["take time"=3.193111ms] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.654 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.660 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.660 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +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:47:24.660 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.662 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=289] [2024/05/06 09:47:24.662 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.666 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.666 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [category=ddl] [job="ID:289, Type:add column, State:cancelling, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.677 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [job="ID:289, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [error="[ddl:8214]Cancelled DDL job"] [2024/05/06 09:47:24.677 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.681 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=530] [neededSchemaVersion=531] ["start time"=479.541µs] [gotSchemaVersion=531] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.684 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=289] [version=531] [2024/05/06 09:47:24.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=531] ["take time"=6.131522ms] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.686 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.692 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.692 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [category=ddl] [job="ID:289, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.692 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.694 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=531] [neededSchemaVersion=532] ["start time"=443.622µs] [gotSchemaVersion=532] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.696 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=289] [version=532] [2024/05/06 09:47:24.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=532] ["take time"=11.253508ms] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.706 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.711 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.711 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [category=ddl] [job="ID:289, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.714 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.716 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=532] [neededSchemaVersion=533] ["start time"=452.193µs] [gotSchemaVersion=533] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.717 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=289] [version=533] [2024/05/06 09:47:24.719 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=533] ["take time"=3.651343ms] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.720 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.726 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.726 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.727 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=289] [2024/05/06 09:47:24.728 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.735 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=289] [conn=3] [job="ID:289, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.739 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=289] [2024/05/06 09:47:24.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:289, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.621 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.740 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=289] [2024/05/06 09:47:24.740 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.740 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=528] [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.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:47:24.740 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=533] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.744 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:290, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.744 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.772 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.772 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.772 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:290, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":37,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.787 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.789 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=533] [neededSchemaVersion=534] ["start time"=469.633µs] [gotSchemaVersion=534] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.790 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=534] [2024/05/06 09:47:24.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=534] ["take time"=2.752478ms] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.793 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.801 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.801 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.802 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=534] [neededSchemaVersion=535] ["start time"=468.853µs] [gotSchemaVersion=535] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.820 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=535] [2024/05/06 09:47:24.824 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=535] ["take time"=19.626024ms] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.825 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.829 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.829 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.832 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.835 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=535] [neededSchemaVersion=536] ["start time"=908.314µs] [gotSchemaVersion=536] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.836 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=536] [2024/05/06 09:47:24.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=536] ["take time"=5.352837ms] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.844 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.876 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.878 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.879 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:290, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":38,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:24.879 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.881 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035751174144, conflictStartTS=449574035751174145, conflictCommitTS=449574035751698432, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=290}, originalKey=748000fffffffffffe5f728000000000000122, 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:47:24.881 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035751174144, conflictStartTS=449574035751174145, conflictCommitTS=449574035751698432, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=290}, originalKey=748000fffffffffffe5f728000000000000122, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:24.881 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035751174144, conflictStartTS=449574035751174145, conflictCommitTS=449574035751698432, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=290}, originalKey=748000fffffffffffe5f728000000000000122, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:290, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.886 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.886 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +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:47:24.886 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.888 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=290] [2024/05/06 09:47:24.888 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.892 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.892 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:24.894 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [job="ID:290, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.742 +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:47:24.894 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.900 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=536] [neededSchemaVersion=538] ["start time"=510.009µs] [gotSchemaVersion=538] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.901 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=538] [2024/05/06 09:47:24.907 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=538] ["take time"=7.820611ms] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.908 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.913 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.913 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:24.914 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.916 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=538] [neededSchemaVersion=539] ["start time"=501.955µs] [gotSchemaVersion=539] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.917 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=539] [2024/05/06 09:47:24.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=539] ["take time"=2.049687ms] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.918 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.924 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.924 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [category=ddl] [job="ID:290, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:24.925 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.927 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=539] [neededSchemaVersion=540] ["start time"=413.646µs] [gotSchemaVersion=540] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.929 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=290] [version=540] [2024/05/06 09:47:24.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=540] ["take time"=4.538453ms] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.932 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.938 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.938 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.939 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=290] [2024/05/06 09:47:24.940 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.944 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=290] [conn=3] [job="ID:290, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.946 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=290] [2024/05/06 09:47:24.947 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:290, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.742 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.949 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=290] [2024/05/06 09:47:24.949 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:24.949 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=533] [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.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:47:24.949 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=540] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:24.968 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:291, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:24.968 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:24.978 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.978 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:24.978 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:291, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":38,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:24.983 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.987 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=540] [neededSchemaVersion=541] ["start time"=542.884µs] [gotSchemaVersion=541] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:24.988 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=541] [2024/05/06 09:47:24.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=541] ["take time"=3.551375ms] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:24.991 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.000 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.000 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.006 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.012 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=541] [neededSchemaVersion=542] ["start time"=594.811µs] [gotSchemaVersion=542] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.016 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=542] [2024/05/06 09:47:25.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=542] ["take time"=4.725157ms] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.024 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.030 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.030 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.034 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.036 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=542] [neededSchemaVersion=543] ["start time"=494.823µs] [gotSchemaVersion=543] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.038 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=543] [2024/05/06 09:47:25.042 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=543] ["take time"=6.433597ms] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.043 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.049 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.049 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +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:47:25.049 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.051 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=291] [2024/05/06 09:47:25.051 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.057 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.057 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:cancelling, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.058 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [job="ID:291, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:1, start time: 2024-05-06 09:47:24.966 +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:47:25.058 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.060 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=543] [neededSchemaVersion=544] ["start time"=467.68µs] [gotSchemaVersion=544] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.062 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=544] [2024/05/06 09:47:25.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=544] ["take time"=12.102029ms] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.073 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.079 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.079 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:rollingback, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.080 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.083 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=544] [neededSchemaVersion=545] ["start time"=474.472µs] [gotSchemaVersion=545] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.085 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=545] [2024/05/06 09:47:25.093 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=545] ["take time"=11.520266ms] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.098 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.103 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.103 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [category=ddl] [job="ID:291, Type:add column, State:rollingback, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.105 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.108 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=545] [neededSchemaVersion=546] ["start time"=447.808µs] [gotSchemaVersion=546] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.109 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=291] [version=546] [2024/05/06 09:47:25.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=546] ["take time"=2.13117ms] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.111 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.116 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.116 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.121 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=291] [2024/05/06 09:47:25.122 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.129 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=291] [conn=3] [job="ID:291, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.148 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=291] [2024/05/06 09:47:25.149 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:291, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:24.966 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.149 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=291] [2024/05/06 09:47:25.150 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:25.150 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=540] [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.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:47:25.150 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=546] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:25.153 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:292, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:25.153 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:25.161 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.161 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.162 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":39,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:25.182 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.194 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=546] [neededSchemaVersion=547] ["start time"=471.66µs] [gotSchemaVersion=547] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.195 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=547] [2024/05/06 09:47:25.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=547] ["take time"=2.037206ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.196 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.202 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.202 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.205 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.207 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=547] [neededSchemaVersion=548] ["start time"=472.713µs] [gotSchemaVersion=548] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.208 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=548] [2024/05/06 09:47:25.208 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=548] ["take time"=2.032093ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.209 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.215 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.215 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.219 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.226 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=548] [neededSchemaVersion=549] ["start time"=477.127µs] [gotSchemaVersion=549] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.227 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=549] [2024/05/06 09:47:25.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=549] ["take time"=14.637451ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.241 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.247 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":40,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:25.251 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.259 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=549] [neededSchemaVersion=550] ["start time"=508.988µs] [gotSchemaVersion=550] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.260 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=550] [2024/05/06 09:47:25.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=550] ["take time"=9.432532ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.267 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.273 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.273 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.274 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.277 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=550] [neededSchemaVersion=551] ["start time"=446.715µs] [gotSchemaVersion=551] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.279 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=551] [2024/05/06 09:47:25.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=551] ["take time"=6.886897ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.284 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.289 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.289 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.290 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.292 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=551] [neededSchemaVersion=552] ["start time"=475.486µs] [gotSchemaVersion=552] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.293 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=552] [2024/05/06 09:47:25.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=552] ["take time"=2.030002ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.294 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.303 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.304 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.305 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [category=ddl] [job="ID:292, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.305 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.308 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=552] [neededSchemaVersion=553] ["start time"=481.487µs] [gotSchemaVersion=553] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:25.309 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=292] [version=553] [2024/05/06 09:47:25.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=553] ["take time"=7.789376ms] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.316 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.324 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.324 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.326 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=292] [2024/05/06 09:47:25.326 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.332 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=292] [conn=3] [job="ID:292, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.336 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:292, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.152 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.337 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=292] [2024/05/06 09:47:25.337 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:25.337 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=553] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:25.344 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:293, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:25.344 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:25.352 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.357 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=293] [conn=3] [category=ddl] [job="ID:293, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.357 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.358 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574035875954688, conflictStartTS=449574035875954689, conflictCommitTS=449574035876478976, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=293}, originalKey=748000fffffffffffe5f728000000000000125, 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:47:25.358 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574035875954688, conflictStartTS=449574035875954689, conflictCommitTS=449574035876478976, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=293}, originalKey=748000fffffffffffe5f728000000000000125, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:25.358 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574035875954688, conflictStartTS=449574035875954689, conflictCommitTS=449574035876478976, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=293}, originalKey=748000fffffffffffe5f728000000000000125, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:293, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.372 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.372 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=293] [conn=3] [job="ID:293, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +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:47:25.372 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.374 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=293] [2024/05/06 09:47:25.375 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.385 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.386 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.388 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=293] [2024/05/06 09:47:25.388 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.411 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=293] [conn=3] [job="ID:293, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.414 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=293] [2024/05/06 09:47:25.415 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:293, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.339 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.415 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=293] [2024/05/06 09:47:25.415 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:25.415 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=553] [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.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:47:25.416 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=553] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:25.418 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:294, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:25.418 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:25.429 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.429 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.429 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.435 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=294] [2024/05/06 09:47:25.436 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.441 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.441 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.441 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.442 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=294] [2024/05/06 09:47:25.442 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.451 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.451 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.452 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.453 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.455 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=553] [neededSchemaVersion=554] ["start time"=472.605µs] [gotSchemaVersion=554] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:25.457 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=554] [2024/05/06 09:47:25.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=554] ["take time"=7.803749ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.464 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.469 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.469 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.478 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.482 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=554] [neededSchemaVersion=555] ["start time"=1.0724ms] [gotSchemaVersion=555] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.484 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=555] [2024/05/06 09:47:25.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=555] ["take time"=11.018029ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.492 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.497 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.497 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.498 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.500 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=555] [neededSchemaVersion=556] ["start time"=485.096µs] [gotSchemaVersion=556] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=556] [2024/05/06 09:47:25.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=556] ["take time"=5.70494ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.506 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.512 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.512 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.513 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.517 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=556] [neededSchemaVersion=557] ["start time"=550.6µs] [gotSchemaVersion=557] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.518 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=557] [2024/05/06 09:47:25.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=557] ["take time"=15.259666ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.533 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.552 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.552 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.553 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.556 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=557] [neededSchemaVersion=558] ["start time"=434.158µs] [gotSchemaVersion=558] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.558 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=558] [2024/05/06 09:47:25.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=558] ["take time"=12.434184ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.569 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.575 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.575 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.576 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.578 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=558] [neededSchemaVersion=559] ["start time"=484.556µs] [gotSchemaVersion=559] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.580 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=559] [2024/05/06 09:47:25.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=559] ["take time"=2.743347ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.581 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.615 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.615 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [category=ddl] [job="ID:294, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.616 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.619 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=559] [neededSchemaVersion=560] ["start time"=469.371µs] [gotSchemaVersion=560] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.621 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=294] [version=560] [2024/05/06 09:47:25.623 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=560] ["take time"=5.04762ms] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.626 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.633 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.634 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.646 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=294] [2024/05/06 09:47:25.646 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.651 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=294] [jobType="alter table multi-schema change"] [2024/05/06 09:47:25.651 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=294] [conn=3] [job="ID:294, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.655 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:294, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.417 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.658 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=294] [2024/05/06 09:47:25.659 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:25.659 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=560] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:25.662 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:295, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:25.662 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:25.672 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.672 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.673 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":41,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:25.673 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.675 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=560] [neededSchemaVersion=561] ["start time"=497.731µs] [gotSchemaVersion=561] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.677 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=561] [2024/05/06 09:47:25.678 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=561] ["take time"=3.089141ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.680 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.689 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.689 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.691 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=561] [neededSchemaVersion=562] ["start time"=509.367µs] [gotSchemaVersion=562] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.695 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=562] [2024/05/06 09:47:25.706 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=562] ["take time"=13.306542ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.714 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.720 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.720 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.723 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.725 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=562] [neededSchemaVersion=563] ["start time"=515.087µs] [gotSchemaVersion=563] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.727 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=563] [2024/05/06 09:47:25.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=563] ["take time"=4.965678ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.732 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.736 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.736 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.737 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":42,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:25.743 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.745 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=563] [neededSchemaVersion=564] ["start time"=491.125µs] [gotSchemaVersion=564] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.747 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=564] [2024/05/06 09:47:25.756 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=564] ["take time"=11.251188ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.757 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.762 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.762 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.762 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.770 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=564] [neededSchemaVersion=565] ["start time"=549.976µs] [gotSchemaVersion=565] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.771 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=565] [2024/05/06 09:47:25.780 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=565] ["take time"=11.33365ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.788 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.794 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.794 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.795 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.797 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=565] [neededSchemaVersion=566] ["start time"=471.667µs] [gotSchemaVersion=566] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:25.799 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=566] [2024/05/06 09:47:25.801 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=566] ["take time"=4.257936ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.806 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.812 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.812 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.813 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [category=ddl] [job="ID:295, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.814 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.816 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=566] [neededSchemaVersion=567] ["start time"=461.366µs] [gotSchemaVersion=567] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:25.818 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=295] [version=567] [2024/05/06 09:47:25.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=567] ["take time"=2.009075ms] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.819 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.824 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.824 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.826 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=295] [2024/05/06 09:47:25.826 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.831 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=295] [conn=3] [job="ID:295, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.834 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:295, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.661 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.835 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=295] [2024/05/06 09:47:25.835 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:25.835 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=567] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:25.838 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:296, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:25.838 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:25.856 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.856 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.856 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.861 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=296] [2024/05/06 09:47:25.861 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.867 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.867 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:25.868 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.869 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=296] [2024/05/06 09:47:25.869 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.876 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.876 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.877 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.877 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.879 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=567] [neededSchemaVersion=568] ["start time"=520.082µs] [gotSchemaVersion=568] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:25.881 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=568] [2024/05/06 09:47:25.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=568] ["take time"=4.040658ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.883 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.890 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.890 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.891 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.895 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=568] [neededSchemaVersion=569] ["start time"=576.128µs] [gotSchemaVersion=569] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.896 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=569] [2024/05/06 09:47:25.905 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=569] ["take time"=10.916274ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.906 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.914 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.915 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.920 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.931 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=569] [neededSchemaVersion=570] ["start time"=516.131µs] [gotSchemaVersion=570] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.935 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=570] [2024/05/06 09:47:25.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=570] ["take time"=4.180877ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.936 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.958 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.958 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.968 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.979 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=570] [neededSchemaVersion=571] ["start time"=509.195µs] [gotSchemaVersion=571] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.981 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=571] [2024/05/06 09:47:25.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=571] ["take time"=4.651014ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.984 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.991 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.991 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:25.993 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:25.996 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=571] [neededSchemaVersion=572] ["start time"=495.893µs] [gotSchemaVersion=572] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:25.997 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=572] [2024/05/06 09:47:26.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=572] ["take time"=5.856887ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.002 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.008 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.008 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.013 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=572] [neededSchemaVersion=573] ["start time"=517.222µs] [gotSchemaVersion=573] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.029 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=573] [2024/05/06 09:47:26.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=573] ["take time"=4.023548ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.031 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.039 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.039 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [category=ddl] [job="ID:296, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.040 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.043 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=573] [neededSchemaVersion=574] ["start time"=575.58µs] [gotSchemaVersion=574] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.044 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=296] [version=574] [2024/05/06 09:47:26.049 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=574] ["take time"=7.098941ms] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.052 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.068 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.068 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.071 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=296] [2024/05/06 09:47:26.071 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.076 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=296] [jobType="alter table multi-schema change"] [2024/05/06 09:47:26.076 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=296] [conn=3] [job="ID:296, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.090 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:296, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:25.837 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.092 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=296] [2024/05/06 09:47:26.093 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:26.093 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=574] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:26.098 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:297, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:26.098 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:26.107 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.107 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.107 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":43,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:26.108 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.114 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=574] [neededSchemaVersion=575] ["start time"=482.888µs] [gotSchemaVersion=575] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.115 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=575] [2024/05/06 09:47:26.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=575] ["take time"=4.873158ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.119 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.131 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.131 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.132 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.134 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=575] [neededSchemaVersion=576] ["start time"=487.938µs] [gotSchemaVersion=576] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.136 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=576] [2024/05/06 09:47:26.140 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=576] ["take time"=6.111323ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.141 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.191 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.191 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.192 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.196 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=576] [neededSchemaVersion=577] ["start time"=559.464µs] [gotSchemaVersion=577] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.198 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=577] [2024/05/06 09:47:26.200 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=577] ["take time"=4.604785ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.201 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.210 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.210 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.210 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":44,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:26.212 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.216 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=577] [neededSchemaVersion=578] ["start time"=575.747µs] [gotSchemaVersion=578] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.218 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=578] [2024/05/06 09:47:26.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=578] ["take time"=26.206869ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.243 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.255 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.255 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.260 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.263 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=578] [neededSchemaVersion=579] ["start time"=521.616µs] [gotSchemaVersion=579] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.265 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=579] [2024/05/06 09:47:26.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=579] ["take time"=5.059124ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.268 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.277 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.277 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.278 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.282 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=579] [neededSchemaVersion=580] ["start time"=517.451µs] [gotSchemaVersion=580] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.284 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=580] [2024/05/06 09:47:26.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=580] ["take time"=11.453807ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.297 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.314 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.314 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.315 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [category=ddl] [job="ID:297, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.315 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.329 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=580] [neededSchemaVersion=581] ["start time"=889.653µs] [gotSchemaVersion=581] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:26.333 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=297] [version=581] [2024/05/06 09:47:26.334 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=581] ["take time"=6.118979ms] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.339 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.345 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.345 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.371 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=297] [2024/05/06 09:47:26.371 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.377 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=297] [conn=3] [job="ID:297, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.383 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:297, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.384 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=297] [2024/05/06 09:47:26.384 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:26.409 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=581] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:26.412 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:298, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:26.412 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:26.424 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.424 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.424 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.427 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=298] [2024/05/06 09:47:26.427 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.434 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.439 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.450 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.461 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=298] [2024/05/06 09:47:26.462 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.468 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.469 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.469 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.470 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.472 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=581] [neededSchemaVersion=582] ["start time"=585.094µs] [gotSchemaVersion=582] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:26.474 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=582] [2024/05/06 09:47:26.480 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=582] ["take time"=8.783258ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.482 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.488 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.488 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.494 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.501 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=582] [neededSchemaVersion=583] ["start time"=3.332953ms] [gotSchemaVersion=583] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.502 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=583] [2024/05/06 09:47:26.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=583] ["take time"=7.47929ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.506 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.512 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.512 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.513 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.526 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=583] [neededSchemaVersion=584] ["start time"=565.406µs] [gotSchemaVersion=584] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.528 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=584] [2024/05/06 09:47:26.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=584] ["take time"=4.217694ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.531 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.540 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.540 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.548 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.551 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=584] [neededSchemaVersion=585] ["start time"=549.186µs] [gotSchemaVersion=585] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.552 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=585] [2024/05/06 09:47:26.559 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=585] ["take time"=9.163566ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.568 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.573 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.573 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.574 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.577 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=585] [neededSchemaVersion=586] ["start time"=583.622µs] [gotSchemaVersion=586] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.579 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=586] [2024/05/06 09:47:26.581 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=586] ["take time"=4.183987ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.582 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.590 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.590 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.593 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.596 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=586] [neededSchemaVersion=587] ["start time"=548.42µs] [gotSchemaVersion=587] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.598 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=587] [2024/05/06 09:47:26.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=587] ["take time"=9.75243ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.608 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.614 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.614 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [category=ddl] [job="ID:298, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.616 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.642 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=587] [neededSchemaVersion=588] ["start time"=677.976µs] [gotSchemaVersion=588] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:26.644 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=298] [version=588] [2024/05/06 09:47:26.645 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=588] ["take time"=4.050774ms] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.649 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.671 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.672 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.682 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=298] [2024/05/06 09:47:26.700 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.709 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=298] [jobType="alter table multi-schema change"] [2024/05/06 09:47:26.711 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=298] [conn=3] [job="ID:298, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.723 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:298, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.411 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.734 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=298] [2024/05/06 09:47:26.734 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:26.739 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=588] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:26.745 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:299, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:26.745 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:26.755 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.755 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.755 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":45,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:26.756 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.758 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=588] [neededSchemaVersion=589] ["start time"=626.251µs] [gotSchemaVersion=589] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.760 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=589] [2024/05/06 09:47:26.765 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=589] ["take time"=7.19581ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.766 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.772 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.772 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.774 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.777 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=589] [neededSchemaVersion=590] ["start time"=510.264µs] [gotSchemaVersion=590] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.779 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=590] [2024/05/06 09:47:26.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=590] ["take time"=11.622157ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.789 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.795 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.795 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.797 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.804 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=590] [neededSchemaVersion=591] ["start time"=491.645µs] [gotSchemaVersion=591] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.806 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=591] [2024/05/06 09:47:26.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=591] ["take time"=13.796917ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.819 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.823 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.823 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.823 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":46,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:26.826 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.829 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=591] [neededSchemaVersion=592] ["start time"=551.571µs] [gotSchemaVersion=592] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.831 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=592] [2024/05/06 09:47:26.836 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=592] ["take time"=7.481412ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.839 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.849 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.849 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.850 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.853 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=592] [neededSchemaVersion=593] ["start time"=523.442µs] [gotSchemaVersion=593] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.854 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=593] [2024/05/06 09:47:26.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=593] ["take time"=4.462948ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.857 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.864 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.864 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.865 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.885 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=593] [neededSchemaVersion=594] ["start time"=542.754µs] [gotSchemaVersion=594] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:26.887 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=594] [2024/05/06 09:47:26.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=594] ["take time"=4.030799ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.889 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.903 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.904 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.905 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [category=ddl] [job="ID:299, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.905 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.908 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=594] [neededSchemaVersion=595] ["start time"=525.505µs] [gotSchemaVersion=595] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:26.909 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=299] [version=595] [2024/05/06 09:47:26.912 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=595] ["take time"=4.417251ms] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.913 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.919 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.920 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.921 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=299] [2024/05/06 09:47:26.922 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.928 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=299] [conn=3] [job="ID:299, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.933 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:299, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.743 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.933 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=299] [2024/05/06 09:47:26.933 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:26.934 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=595] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:26.952 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:300, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:26.952 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:26.971 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.971 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.972 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.973 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=300] [2024/05/06 09:47:26.973 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.977 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.977 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:26.978 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.979 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=300] [2024/05/06 09:47:26.980 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.992 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.992 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.993 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:26.996 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:26.998 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=595] [neededSchemaVersion=596] ["start time"=549.025µs] [gotSchemaVersion=596] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:27.000 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=596] [2024/05/06 09:47:27.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=596] ["take time"=4.670391ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.003 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.009 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.009 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.010 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.013 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=596] [neededSchemaVersion=597] ["start time"=712.846µs] [gotSchemaVersion=597] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.015 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=597] [2024/05/06 09:47:27.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=597] ["take time"=4.803614ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.022 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.028 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.028 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.030 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.034 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=597] [neededSchemaVersion=598] ["start time"=559.514µs] [gotSchemaVersion=598] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.035 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=598] [2024/05/06 09:47:27.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=598] ["take time"=6.126179ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.043 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.050 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.050 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.052 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.055 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=598] [neededSchemaVersion=599] ["start time"=529.693µs] [gotSchemaVersion=599] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.057 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=599] [2024/05/06 09:47:27.059 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=599] ["take time"=4.580469ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.060 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.066 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.066 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.069 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.072 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=599] [neededSchemaVersion=600] ["start time"=491.169µs] [gotSchemaVersion=600] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.073 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=600] [2024/05/06 09:47:27.085 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=600] ["take time"=13.979746ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.087 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.096 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.096 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.097 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.109 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=600] [neededSchemaVersion=601] ["start time"=543.826µs] [gotSchemaVersion=601] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.110 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=601] [2024/05/06 09:47:27.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=601] ["take time"=5.392298ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.115 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.119 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.119 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [category=ddl] [job="ID:300, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.120 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.122 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=601] [neededSchemaVersion=602] ["start time"=490.68µs] [gotSchemaVersion=602] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.124 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=300] [version=602] [2024/05/06 09:47:27.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=602] ["take time"=4.513455ms] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.127 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.133 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.134 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.141 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=300] [2024/05/06 09:47:27.141 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.147 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=300] [jobType="alter table multi-schema change"] [2024/05/06 09:47:27.147 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=300] [conn=3] [job="ID:300, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.152 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:300, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:26.942 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.154 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=300] [2024/05/06 09:47:27.154 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:27.155 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=602] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:27.161 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:301, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:27.161 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:27.172 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.172 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.173 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":47,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:27.173 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.176 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=602] [neededSchemaVersion=603] ["start time"=517.233µs] [gotSchemaVersion=603] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.177 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=603] [2024/05/06 09:47:27.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=603] ["take time"=4.882322ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.188 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.194 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.195 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.195 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.201 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=603] [neededSchemaVersion=604] ["start time"=520.685µs] [gotSchemaVersion=604] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.202 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=604] [2024/05/06 09:47:27.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=604] ["take time"=6.28983ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.207 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.212 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.212 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.214 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.216 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=604] [neededSchemaVersion=605] ["start time"=519.873µs] [gotSchemaVersion=605] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.218 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=605] [2024/05/06 09:47:27.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=605] ["take time"=11.129992ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.228 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.233 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.233 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.234 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":48,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:27.235 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.237 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=605] [neededSchemaVersion=606] ["start time"=509.406µs] [gotSchemaVersion=606] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.240 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=606] [2024/05/06 09:47:27.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=606] ["take time"=4.01099ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.243 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.251 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.252 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.253 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.256 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=606] [neededSchemaVersion=607] ["start time"=520.994µs] [gotSchemaVersion=607] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.258 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=607] [2024/05/06 09:47:27.265 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=607] ["take time"=9.702286ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.270 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.279 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.279 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.282 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.284 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=607] [neededSchemaVersion=608] ["start time"=483.134µs] [gotSchemaVersion=608] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.286 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=608] [2024/05/06 09:47:27.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=608] ["take time"=11.304525ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.297 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.305 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.306 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.309 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [category=ddl] [job="ID:301, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.310 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.312 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=608] [neededSchemaVersion=609] ["start time"=542.347µs] [gotSchemaVersion=609] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:27.314 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=301] [version=609] [2024/05/06 09:47:27.316 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=609] ["take time"=4.508371ms] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.317 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.324 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.324 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.326 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=301] [2024/05/06 09:47:27.327 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.332 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=301] [conn=3] [job="ID:301, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.336 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:301, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.156 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.337 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=301] [2024/05/06 09:47:27.337 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:27.338 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=609] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:27.341 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:302, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:27.341 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:27.349 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.349 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.350 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.354 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=302] [2024/05/06 09:47:27.355 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.376 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.376 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.376 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.377 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=302] [2024/05/06 09:47:27.378 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.387 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.387 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.388 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.388 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.390 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=609] [neededSchemaVersion=610] ["start time"=481.555µs] [gotSchemaVersion=610] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:27.393 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=610] [2024/05/06 09:47:27.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=610] ["take time"=4.011316ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.395 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.400 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.400 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.403 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.407 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=610] [neededSchemaVersion=611] ["start time"=539.815µs] [gotSchemaVersion=611] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.408 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=611] [2024/05/06 09:47:27.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=611] ["take time"=4.710211ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.412 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.417 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.418 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.418 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.424 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=611] [neededSchemaVersion=612] ["start time"=513.327µs] [gotSchemaVersion=612] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.426 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=612] [2024/05/06 09:47:27.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=612] ["take time"=4.239521ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.428 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.438 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.438 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.439 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.442 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=612] [neededSchemaVersion=613] ["start time"=1.111434ms] [gotSchemaVersion=613] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.444 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=613] [2024/05/06 09:47:27.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=613] ["take time"=31.737144ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.474 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.481 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.481 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.481 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.484 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=613] [neededSchemaVersion=614] ["start time"=532.495µs] [gotSchemaVersion=614] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.486 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=614] [2024/05/06 09:47:27.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=614] ["take time"=16.408818ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.528 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.528 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.530 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.532 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=614] [neededSchemaVersion=615] ["start time"=751.236µs] [gotSchemaVersion=615] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.536 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=615] [2024/05/06 09:47:27.545 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=615] ["take time"=13.96713ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.549 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.556 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.556 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [category=ddl] [job="ID:302, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.557 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.562 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=615] [neededSchemaVersion=616] ["start time"=498.181µs] [gotSchemaVersion=616] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.564 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=302] [version=616] [2024/05/06 09:47:27.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=616] ["take time"=4.817545ms] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.567 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.573 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.573 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.580 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=302] [2024/05/06 09:47:27.580 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.586 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=302] [jobType="alter table multi-schema change"] [2024/05/06 09:47:27.586 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=302] [conn=3] [job="ID:302, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.590 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:302, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.339 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.593 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=302] [2024/05/06 09:47:27.593 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:27.594 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=616] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:27.597 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:303, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:27.597 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:27.625 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.625 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.625 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":49,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:27.633 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.643 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=616] [neededSchemaVersion=617] ["start time"=544.53µs] [gotSchemaVersion=617] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.644 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=617] [2024/05/06 09:47:27.644 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=617] ["take time"=4.009209ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.645 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.665 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.665 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.673 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.676 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=617] [neededSchemaVersion=618] ["start time"=516.684µs] [gotSchemaVersion=618] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.677 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=618] [2024/05/06 09:47:27.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=618] ["take time"=5.243372ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.682 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.688 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.688 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.688 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.691 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=618] [neededSchemaVersion=619] ["start time"=467.119µs] [gotSchemaVersion=619] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.692 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=619] [2024/05/06 09:47:27.693 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=619] ["take time"=2.096639ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.693 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.700 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.700 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.701 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":50,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:27.703 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.705 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=619] [neededSchemaVersion=620] ["start time"=526.705µs] [gotSchemaVersion=620] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.707 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=620] [2024/05/06 09:47:27.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=620] ["take time"=5.276169ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.711 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.716 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.716 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.717 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.719 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=620] [neededSchemaVersion=621] ["start time"=555.305µs] [gotSchemaVersion=621] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.722 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=621] [2024/05/06 09:47:27.727 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=621] ["take time"=9.054922ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.731 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.737 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.737 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.750 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.753 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=621] [neededSchemaVersion=622] ["start time"=514.165µs] [gotSchemaVersion=622] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:27.754 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=622] [2024/05/06 09:47:27.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=622] ["take time"=14.385887ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.767 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.772 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.773 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.774 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [category=ddl] [job="ID:303, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.774 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.777 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=622] [neededSchemaVersion=623] ["start time"=518.088µs] [gotSchemaVersion=623] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:27.778 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=303] [version=623] [2024/05/06 09:47:27.781 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=623] ["take time"=4.880281ms] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.784 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.792 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.793 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.794 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=303] [2024/05/06 09:47:27.795 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.801 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=303] [conn=3] [job="ID:303, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.805 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:303, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.596 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.807 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=303] [2024/05/06 09:47:27.807 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:27.808 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=623] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:27.812 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:304, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:27.813 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:27.821 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.821 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.821 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.822 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=304] [2024/05/06 09:47:27.823 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.830 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.830 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:27.830 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.835 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=304] [2024/05/06 09:47:27.836 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.840 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.841 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.841 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.842 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.844 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=623] [neededSchemaVersion=624] ["start time"=486.31µs] [gotSchemaVersion=624] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:27.845 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=624] [2024/05/06 09:47:27.850 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=624] ["take time"=6.772767ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.851 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.857 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.857 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.869 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.874 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=624] [neededSchemaVersion=625] ["start time"=554.436µs] [gotSchemaVersion=625] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.876 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=625] [2024/05/06 09:47:27.878 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=625] ["take time"=4.575108ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.879 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.888 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.888 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.889 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.891 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=625] [neededSchemaVersion=626] ["start time"=513.461µs] [gotSchemaVersion=626] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.893 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=626] [2024/05/06 09:47:27.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=626] ["take time"=6.424551ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.898 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.917 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.917 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.918 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.921 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=626] [neededSchemaVersion=627] ["start time"=545.941µs] [gotSchemaVersion=627] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.923 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=627] [2024/05/06 09:47:27.925 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=627] ["take time"=4.688596ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.926 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.932 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.932 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.933 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.937 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=627] [neededSchemaVersion=628] ["start time"=493.516µs] [gotSchemaVersion=628] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.940 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=628] [2024/05/06 09:47:27.941 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=628] ["take time"=6.644128ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.946 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.963 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.963 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.967 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.970 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=628] [neededSchemaVersion=629] ["start time"=536.517µs] [gotSchemaVersion=629] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.971 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=629] [2024/05/06 09:47:27.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=629] ["take time"=5.040972ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.975 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.982 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.982 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [category=ddl] [job="ID:304, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:27.982 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.990 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=629] [neededSchemaVersion=630] ["start time"=505.433µs] [gotSchemaVersion=630] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:27.993 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=304] [version=630] [2024/05/06 09:47:27.993 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=630] ["take time"=4.106946ms] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:27.997 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.002 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.002 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.003 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=304] [2024/05/06 09:47:28.004 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.011 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=304] [jobType="alter table multi-schema change"] [2024/05/06 09:47:28.011 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=304] [conn=3] [job="ID:304, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.015 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:304, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:27.81 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.018 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=304] [2024/05/06 09:47:28.018 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:28.018 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=630] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:28.023 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:305, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:28.023 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:28.039 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.039 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.039 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":51,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:28.043 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.045 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=630] [neededSchemaVersion=631] ["start time"=473.463µs] [gotSchemaVersion=631] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.047 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=631] [2024/05/06 09:47:28.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=631] ["take time"=6.937945ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.054 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.058 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.058 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.059 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.061 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=631] [neededSchemaVersion=632] ["start time"=520.822µs] [gotSchemaVersion=632] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.062 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=632] [2024/05/06 09:47:28.063 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=632] ["take time"=2.047814ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.063 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.069 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.069 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.077 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.080 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=632] [neededSchemaVersion=633] ["start time"=574.883µs] [gotSchemaVersion=633] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.082 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=633] [2024/05/06 09:47:28.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=633] ["take time"=5.095204ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.092 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.117 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.117 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.118 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":52,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:28.122 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.134 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=633] [neededSchemaVersion=634] ["start time"=570.51µs] [gotSchemaVersion=634] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.137 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=634] [2024/05/06 09:47:28.147 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=634] ["take time"=13.658995ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.148 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.153 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.153 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.159 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.162 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=634] [neededSchemaVersion=635] ["start time"=544.353µs] [gotSchemaVersion=635] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.163 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=635] [2024/05/06 09:47:28.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=635] ["take time"=4.141794ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.167 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.173 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.173 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.175 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.178 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=635] [neededSchemaVersion=636] ["start time"=557.993µs] [gotSchemaVersion=636] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.179 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=636] [2024/05/06 09:47:28.182 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=636] ["take time"=4.493267ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.183 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.191 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.192 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.193 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [category=ddl] [job="ID:305, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.194 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.196 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=636] [neededSchemaVersion=637] ["start time"=555.163µs] [gotSchemaVersion=637] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:28.198 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=305] [version=637] [2024/05/06 09:47:28.200 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=637] ["take time"=4.442553ms] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.201 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.207 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.207 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.209 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=305] [2024/05/06 09:47:28.210 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.214 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=305] [conn=3] [job="ID:305, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.224 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:305, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.02 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.224 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=305] [2024/05/06 09:47:28.224 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:28.225 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=637] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:28.228 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:306, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:28.228 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:28.243 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.243 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.244 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.245 +00:00] [INFO] [db.go:833] ["flushing memtable"] ["memtable size"=12581444] ["size of flushChan"=0] [2024/05/06 09:47:28.245 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=306] [2024/05/06 09:47:28.245 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.246 +00:00] [INFO] [db.go:937] ["flush memtable storing offset"] [fid=0] [offset=0] [2024/05/06 09:47:28.252 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.252 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.253 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.257 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=306] [2024/05/06 09:47:28.258 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.268 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.268 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.270 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.270 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.276 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=637] [neededSchemaVersion=638] ["start time"=573.259µs] [gotSchemaVersion=638] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:28.278 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=638] [2024/05/06 09:47:28.285 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=638] ["take time"=9.738512ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.286 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.302 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.302 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.304 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.313 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=638] [neededSchemaVersion=639] ["start time"=564.64µs] [gotSchemaVersion=639] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.314 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=639] [2024/05/06 09:47:28.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=639] ["take time"=4.984476ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.320 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.326 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.326 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.332 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.339 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=639] [neededSchemaVersion=640] ["start time"=594.207µs] [gotSchemaVersion=640] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.340 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=640] [2024/05/06 09:47:28.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=640] ["take time"=4.249777ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.344 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.354 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.354 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.356 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.361 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=640] [neededSchemaVersion=641] ["start time"=565.93µs] [gotSchemaVersion=641] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.363 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=641] [2024/05/06 09:47:28.364 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=641] ["take time"=4.016081ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.365 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.370 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.370 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.371 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.374 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=641] [neededSchemaVersion=642] ["start time"=509.268µs] [gotSchemaVersion=642] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.375 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=642] [2024/05/06 09:47:28.376 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=642] ["take time"=3.064598ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.377 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.383 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.383 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.386 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.389 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=642] [neededSchemaVersion=643] ["start time"=503.781µs] [gotSchemaVersion=643] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.390 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=643] [2024/05/06 09:47:28.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=643] ["take time"=2.193673ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.391 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.397 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.397 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [category=ddl] [job="ID:306, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.400 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.404 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=643] [neededSchemaVersion=644] ["start time"=520.598µs] [gotSchemaVersion=644] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:28.406 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=306] [version=644] [2024/05/06 09:47:28.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=644] ["take time"=12.059538ms] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.417 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.422 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.423 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.426 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=306] [2024/05/06 09:47:28.426 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.437 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=306] [jobType="alter table multi-schema change"] [2024/05/06 09:47:28.437 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=306] [conn=3] [job="ID:306, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.447 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:306, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.227 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.452 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=306] [2024/05/06 09:47:28.452 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:28.453 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=644] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:28.456 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:307, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:28.456 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:28.464 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.464 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.464 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":53,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:28.465 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.467 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=644] [neededSchemaVersion=645] ["start time"=519.203µs] [gotSchemaVersion=645] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.469 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=645] [2024/05/06 09:47:28.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=645] ["take time"=4.899945ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.473 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.479 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.479 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.482 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.487 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=645] [neededSchemaVersion=646] ["start time"=505.142µs] [gotSchemaVersion=646] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.488 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=646] [2024/05/06 09:47:28.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=646] ["take time"=7.51293ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.492 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.497 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.497 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.499 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.502 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=646] [neededSchemaVersion=647] ["start time"=542.356µs] [gotSchemaVersion=647] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.503 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=647] [2024/05/06 09:47:28.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=647] ["take time"=11.551472ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.521 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.529 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.529 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.530 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":54,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:28.530 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.533 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=647] [neededSchemaVersion=648] ["start time"=528.615µs] [gotSchemaVersion=648] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.534 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=648] [2024/05/06 09:47:28.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=648] ["take time"=2.027058ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.535 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.540 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.540 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.542 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.544 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=648] [neededSchemaVersion=649] ["start time"=463.637µs] [gotSchemaVersion=649] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.545 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=649] [2024/05/06 09:47:28.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=649] ["take time"=2.930579ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.547 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.552 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.552 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:28.555 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.560 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=649] [neededSchemaVersion=650] ["start time"=536.265µs] [gotSchemaVersion=650] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:28.561 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=650] [2024/05/06 09:47:28.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=650] ["take time"=4.553718ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.564 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.571 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.571 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.575 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [category=ddl] [job="ID:307, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:28.576 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.582 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=650] [neededSchemaVersion=651] ["start time"=586.327µs] [gotSchemaVersion=651] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:28.584 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=307] [version=651] [2024/05/06 09:47:28.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=651] ["take time"=6.19508ms] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.589 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.593 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.593 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.594 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=307] [2024/05/06 09:47:28.595 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.600 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=307] [conn=3] [job="ID:307, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.605 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:307, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.455 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.606 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=307] [2024/05/06 09:47:28.606 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:28.606 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=651] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:28.609 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:308, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:28.609 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:308, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:28.627 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.627 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.628 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":31,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:28.628 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:28.628 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.631 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=651] [neededSchemaVersion=652] ["start time"=549.84µs] [gotSchemaVersion=652] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:28.633 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=652] [2024/05/06 09:47:28.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=652] ["take time"=4.297309ms] [job="ID:308, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.635 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.641 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.641 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.642 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.644 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=652] [neededSchemaVersion=653] ["start time"=410.884µs] [gotSchemaVersion=653] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:28.645 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=653] [2024/05/06 09:47:28.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=653] ["take time"=3.308337ms] [job="ID:308, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.648 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.655 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.655 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.655 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.658 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=653] [neededSchemaVersion=654] ["start time"=493.416µs] [gotSchemaVersion=654] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:28.659 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=654] [2024/05/06 09:47:28.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=654] ["take time"=2.011413ms] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.660 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.665 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.665 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.666 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.668 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=308] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:28.669 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.670 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.671 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.679 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.680 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.680 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.681 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:31,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:28.683 +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:47:28.683 +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:47:28.683 +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:47:28.697 +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:47:28.697 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.698 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.699 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.705 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.705 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.706 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.720 +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:47:28.720 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.721 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.722 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.739 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.739 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.739 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.758 +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:47:28.758 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.759 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.759 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.765 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.765 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.766 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.781 +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:47:28.781 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.782 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.782 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.790 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.790 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.790 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.904 +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: 308"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=119.167272ms] [2024/05/06 09:47:28.904 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=308] [2024/05/06 09:47:28.904 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:31,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:28.914 +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:47:28.914 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.915 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:28.915 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.922 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.922 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:352, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:28.922 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=308] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:28.924 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:29.075 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.077 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=654] [neededSchemaVersion=655] ["start time"=588.023µs] [gotSchemaVersion=655] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:29.079 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=655] [2024/05/06 09:47:29.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=655] ["take time"=4.020516ms] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.081 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.089 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.089 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036744699904, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.090 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=308] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:29.092 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.094 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=655] [neededSchemaVersion=656] ["start time"=571.999µs] [gotSchemaVersion=656] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:29.095 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=656] [2024/05/06 09:47:29.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=656] ["take time"=2.131335ms] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.096 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.103 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.103 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.103 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=308] [physicalTableID=111] [startKey=74800000000000006f5f69ffff00000000001f] [endKey=74800000000000006f5f69ffff00000000001fff] [2024/05/06 09:47:29.112 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.117 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:29.118 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.124 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.124 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.126 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:31,StartKey:74800000000000006f5f69ffff00000000001f,EndKey:74800000000000006f5f69ffff00000000001fff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:29.127 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff00000000001f] ["end key"=74800000000000006f5f69ffff00000000001fff] [2024/05/06 09:47:29.127 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff00000000001f] [endKey=74800000000000006f5f69ffff00000000001fff] [2024/05/06 09:47:29.127 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff00000000001fff] ["current end key"=74800000000000006f5f69ffff00000000001f00] [2024/05/06 09:47:29.190 +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:47:29.190 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.191 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:29.191 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.197 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.198 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.228 +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: [74800000000000006f5f69ffff00000000001f, 74800000000000006f5f69ffff00000000001f00), jobID: 308"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff00000000001f0000] ["take time"=237.926µs] [2024/05/06 09:47:29.228 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=308] [2024/05/06 09:47:29.228 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:31,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff00000000001f] [2024/05/06 09:47:29.260 +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:47:29.260 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.261 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=308] [2024/05/06 09:47:29.262 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.274 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.274 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=308] [conn=3] [category=ddl] [job="ID:308, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.276 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:29.309 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:29.309 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:308, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.312 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=656] [neededSchemaVersion=657] ["start time"=417.971µs] [gotSchemaVersion=657] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:29.313 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=308] [version=657] [2024/05/06 09:47:29.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=657] ["take time"=4.291166ms] [job="ID:308, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.319 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.325 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=308] [tableID=111] [indexIDs="[9223090561878065183]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:29.327 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=308] [jobType="add index"] [2024/05/06 09:47:29.327 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=308] [conn=3] [job="ID:308, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.331 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=308] [elementID=1] [startKey=74800000000000006f5f69ffff00000000001f] [endKey=74800000000000006f5f69ffff000000000020] [2024/05/06 09:47:29.332 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:308, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:28.607 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574036859256833, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.334 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=308] [2024/05/06 09:47:29.334 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:29.335 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=657] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:29.339 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:309, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:29.340 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:29.372 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.377 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=309] [conn=3] [category=ddl] [job="ID:309, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.377 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.378 +00:00] [WARN] [session.go:813] ["can not retry txn"] [label=internal] [error="[kv:9007]Write conflict, txnStartTS=449574036929773568, conflictStartTS=449574036930035712, conflictCommitTS=449574036930297856, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=309}, originalKey=748000fffffffffffe5f728000000000000135, 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:47:29.378 +00:00] [WARN] [session.go:829] ["commit failed"] ["finished txn"="Txn{state=invalid}"] [error="[kv:9007]Write conflict, txnStartTS=449574036929773568, conflictStartTS=449574036930035712, conflictCommitTS=449574036930297856, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=309}, originalKey=748000fffffffffffe5f728000000000000135, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [2024/05/06 09:47:29.378 +00:00] [INFO] [job_table.go:465] ["handle ddl job failed"] [worker="worker 6, tp general"] [category=ddl] [error="[kv:9007]Write conflict, txnStartTS=449574036929773568, conflictStartTS=449574036930035712, conflictCommitTS=449574036930297856, key={tableID=281474976710654, tableName=mysql.tidb_ddl_job, handle=309}, originalKey=748000fffffffffffe5f728000000000000135, primary=[]byte(nil), originalPrimaryKey=, reason=Optimistic [try again later]"] [job="ID:309, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.386 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:cancelling, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.386 +00:00] [INFO] [rollingback.go:559] ["the DDL job is cancelled normally"] [worker="worker 6, tp general"] [category=ddl] [jobID=309] [conn=3] [job="ID:309, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +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:47:29.386 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.390 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=309] [2024/05/06 09:47:29.390 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.396 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollingback, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.396 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.398 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=309] [2024/05/06 09:47:29.399 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.404 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=309] [conn=3] [job="ID:309, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.408 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=309] [2024/05/06 09:47:29.408 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:309, Type:alter table multi-schema change, State:rollback done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.336 +0000 UTC, Err:[ddl:8214]Cancelled DDL job, ErrCount:1, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.411 +00:00] [INFO] [ddl.go:1292] ["DDL job is failed"] [category=ddl] [jobID=309] [2024/05/06 09:47:29.411 +00:00] [INFO] [tidb.go:269] ["rollbackTxn called due to ddl/autocommit failure"] [2024/05/06 09:47:29.411 +00:00] [WARN] [session.go:2153] ["run statement failed"] [schemaVersion=657] [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.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:47:29.411 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=657] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:29.414 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:310, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:29.414 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:29.430 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.430 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.431 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.432 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=310] [2024/05/06 09:47:29.433 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.437 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.437 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.438 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.439 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=310] [2024/05/06 09:47:29.440 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.446 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.447 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.448 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.448 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.451 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=657] [neededSchemaVersion=658] ["start time"=600.741µs] [gotSchemaVersion=658] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:29.452 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=658] [2024/05/06 09:47:29.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=658] ["take time"=7.819595ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.474 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.480 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.480 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.531 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.534 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=658] [neededSchemaVersion=659] ["start time"=645.75µs] [gotSchemaVersion=659] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.536 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=659] [2024/05/06 09:47:29.545 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=659] ["take time"=11.100072ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.546 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.553 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.553 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.555 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.558 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=659] [neededSchemaVersion=660] ["start time"=582.95µs] [gotSchemaVersion=660] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.560 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=660] [2024/05/06 09:47:29.562 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=660] ["take time"=5.194834ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.564 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.570 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.570 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.571 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.575 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=660] [neededSchemaVersion=661] ["start time"=618.096µs] [gotSchemaVersion=661] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.576 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=661] [2024/05/06 09:47:29.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=661] ["take time"=4.410192ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.588 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.637 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.637 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.646 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.654 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=661] [neededSchemaVersion=662] ["start time"=547.217µs] [gotSchemaVersion=662] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.655 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=662] [2024/05/06 09:47:29.660 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=662] ["take time"=7.30441ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.661 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.668 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.668 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.671 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.674 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=662] [neededSchemaVersion=663] ["start time"=519.173µs] [gotSchemaVersion=663] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.675 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=663] [2024/05/06 09:47:29.678 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=663] ["take time"=5.043706ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.679 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.685 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.686 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [category=ddl] [job="ID:310, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.687 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.693 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=663] [neededSchemaVersion=664] ["start time"=494.118µs] [gotSchemaVersion=664] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:29.694 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=310] [version=664] [2024/05/06 09:47:29.706 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=664] ["take time"=15.104313ms] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.707 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.713 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.713 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.716 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=310] [2024/05/06 09:47:29.717 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.723 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=310] [tableID=111] [indexIDs="[31]"] [comment="drop column: table ID"] [2024/05/06 09:47:29.724 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=310] [jobType="alter table multi-schema change"] [2024/05/06 09:47:29.725 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=310] [conn=3] [job="ID:310, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.728 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:310, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.413 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.742 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=310] [2024/05/06 09:47:29.742 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:29.743 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=664] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:29.753 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:311, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:29.753 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:29.774 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=310] [elementID=1] [startKey=74800000000000006f5f69800000000000001f] [endKey=74800000000000006f5f698000000000000020] [2024/05/06 09:47:29.787 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.787 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.788 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":55,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:29.793 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.795 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=664] [neededSchemaVersion=665] ["start time"=517.027µs] [gotSchemaVersion=665] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.797 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=665] [2024/05/06 09:47:29.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=665] ["take time"=8.007266ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.803 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.810 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.810 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.811 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.815 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=665] [neededSchemaVersion=666] ["start time"=459.169µs] [gotSchemaVersion=666] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.817 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=666] [2024/05/06 09:47:29.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=666] ["take time"=2.053628ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.819 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.824 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.824 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.825 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.827 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=666] [neededSchemaVersion=667] ["start time"=453.263µs] [gotSchemaVersion=667] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.828 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=667] [2024/05/06 09:47:29.829 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=667] ["take time"=2.237243ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.830 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.840 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.840 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.841 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":56,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:29.844 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.860 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=667] [neededSchemaVersion=668] ["start time"=658.958µs] [gotSchemaVersion=668] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.862 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=668] [2024/05/06 09:47:29.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=668] ["take time"=4.255886ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.868 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.874 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.874 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.875 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.879 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=668] [neededSchemaVersion=669] ["start time"=627.27µs] [gotSchemaVersion=669] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.881 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=669] [2024/05/06 09:47:29.882 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=669] ["take time"=4.223966ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.884 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.896 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.896 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:29.897 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.899 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=669] [neededSchemaVersion=670] ["start time"=560.291µs] [gotSchemaVersion=670] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:29.901 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=670] [2024/05/06 09:47:29.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=670] ["take time"=4.226578ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.904 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.911 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.912 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.916 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [category=ddl] [job="ID:311, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:29.917 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.920 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=670] [neededSchemaVersion=671] ["start time"=531.074µs] [gotSchemaVersion=671] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:29.921 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=311] [version=671] [2024/05/06 09:47:29.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=671] ["take time"=4.967541ms] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.925 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.931 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.931 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.933 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=311] [2024/05/06 09:47:29.934 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.942 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=311] [conn=3] [job="ID:311, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.947 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:311, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.745 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.948 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=311] [2024/05/06 09:47:29.948 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:29.948 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=671] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:29.951 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:312, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:29.951 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:312, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:29.963 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.963 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.964 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":32,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:29.964 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:29.971 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.975 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=671] [neededSchemaVersion=672] ["start time"=582.098µs] [gotSchemaVersion=672] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:29.976 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=672] [2024/05/06 09:47:29.980 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=672] ["take time"=6.147243ms] [job="ID:312, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.983 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.989 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.990 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.991 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:29.993 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=672] [neededSchemaVersion=673] ["start time"=593.222µs] [gotSchemaVersion=673] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:29.995 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=673] [2024/05/06 09:47:30.004 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=673] ["take time"=11.70614ms] [job="ID:312, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.012 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.020 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.020 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.021 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.024 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=673] [neededSchemaVersion=674] ["start time"=617.738µs] [gotSchemaVersion=674] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:30.025 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=674] [2024/05/06 09:47:30.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=674] ["take time"=9.680136ms] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.052 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.059 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.059 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.060 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.060 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=312] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:30.063 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.065 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.066 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.074 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.075 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.075 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.077 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:32,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:30.078 +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:47:30.078 +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:47:30.078 +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:47:30.089 +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:47:30.089 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.090 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.090 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.097 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.097 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.098 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.119 +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:47:30.119 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.120 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.120 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.128 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.128 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.128 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.140 +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:47:30.140 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.141 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.141 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.151 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.151 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.151 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.176 +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:47:30.176 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.177 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.178 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.185 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.185 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.186 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.214 +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:47:30.214 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.215 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.215 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.222 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.222 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.222 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.277 +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:47:30.277 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.308 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.309 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.316 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.316 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:480, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.316 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=312] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:30.343 +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: 312"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=129.574943ms] [2024/05/06 09:47:30.344 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=312] [2024/05/06 09:47:30.344 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:32,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:30.344 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:30.391 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.393 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=674] [neededSchemaVersion=675] ["start time"=609.702µs] [gotSchemaVersion=675] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:30.395 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=675] [2024/05/06 09:47:30.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=675] ["take time"=6.300935ms] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.400 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.407 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.407 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037110128640, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.407 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=312] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:30.410 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.413 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=675] [neededSchemaVersion=676] ["start time"=718.851µs] [gotSchemaVersion=676] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:30.414 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=676] [2024/05/06 09:47:30.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=676] ["take time"=4.356635ms] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.417 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.429 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.429 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.430 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=312] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000020] [endKey=74800000000000006f5f69ffff000000000020ff] [2024/05/06 09:47:30.437 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.439 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.439 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.451 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.451 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.456 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:32,StartKey:74800000000000006f5f69ffff000000000020,EndKey:74800000000000006f5f69ffff000000000020ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:30.458 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000020] ["end key"=74800000000000006f5f69ffff000000000020ff] [2024/05/06 09:47:30.458 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000020] [endKey=74800000000000006f5f69ffff000000000020ff] [2024/05/06 09:47:30.460 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000020ff] ["current end key"=74800000000000006f5f69ffff00000000002000] [2024/05/06 09:47:30.547 +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:47:30.547 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.550 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.551 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.560 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.560 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=312] [conn=3] [category=ddl] [job="ID:312, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.561 +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: [74800000000000006f5f69ffff000000000020, 74800000000000006f5f69ffff00000000002000), jobID: 312"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000200000] ["take time"=213.471µs] [2024/05/06 09:47:30.561 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=312] [2024/05/06 09:47:30.561 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:32,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000020] [2024/05/06 09:47:30.563 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:30.632 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:30.632 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:312, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.635 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=676] [neededSchemaVersion=677] ["start time"=568.275µs] [gotSchemaVersion=677] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:30.636 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=312] [version=677] [2024/05/06 09:47:30.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=677] ["take time"=2.028156ms] [job="ID:312, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.637 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.644 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=312] [tableID=111] [indexIDs="[9223090561878065184]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:30.646 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=312] [jobType="add index"] [2024/05/06 09:47:30.646 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=312] [conn=3] [job="ID:312, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.656 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=312] [elementID=1] [startKey=74800000000000006f5f69ffff000000000020] [endKey=74800000000000006f5f69ffff000000000021] [2024/05/06 09:47:30.658 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:312, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:29.95 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037207121920, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.661 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=312] [2024/05/06 09:47:30.661 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:30.662 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=677] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:30.664 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:313, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:30.664 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:30.672 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.672 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.673 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.684 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=313] [2024/05/06 09:47:30.685 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.701 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.701 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.702 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.703 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=313] [2024/05/06 09:47:30.703 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.707 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.708 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.710 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.710 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.712 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=677] [neededSchemaVersion=678] ["start time"=595.509µs] [gotSchemaVersion=678] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:30.714 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=678] [2024/05/06 09:47:30.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=678] ["take time"=2.054004ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.717 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.724 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.724 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.725 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.727 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=678] [neededSchemaVersion=679] ["start time"=432.318µs] [gotSchemaVersion=679] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.728 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=679] [2024/05/06 09:47:30.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=679] ["take time"=2.116894ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.729 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.733 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.733 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.740 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.743 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=679] [neededSchemaVersion=680] ["start time"=543.48µs] [gotSchemaVersion=680] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.744 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=680] [2024/05/06 09:47:30.749 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=680] ["take time"=6.678874ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.750 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.755 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.755 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.755 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.758 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=680] [neededSchemaVersion=681] ["start time"=488.391µs] [gotSchemaVersion=681] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.759 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=681] [2024/05/06 09:47:30.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=681] ["take time"=2.825623ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.761 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.766 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.766 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.767 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.769 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=681] [neededSchemaVersion=682] ["start time"=531.804µs] [gotSchemaVersion=682] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.771 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=682] [2024/05/06 09:47:30.771 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=682] ["take time"=2.049048ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.771 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.776 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.776 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.782 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.784 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=682] [neededSchemaVersion=683] ["start time"=409.416µs] [gotSchemaVersion=683] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.786 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=683] [2024/05/06 09:47:30.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=683] ["take time"=4.277099ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.789 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.795 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.795 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [category=ddl] [job="ID:313, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.796 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.798 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=683] [neededSchemaVersion=684] ["start time"=489.662µs] [gotSchemaVersion=684] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:30.800 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=313] [version=684] [2024/05/06 09:47:30.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=684] ["take time"=11.332924ms] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.810 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.815 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.816 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.818 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=313] [2024/05/06 09:47:30.818 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.823 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=313] [tableID=111] [indexIDs="[32]"] [comment="drop column: table ID"] [2024/05/06 09:47:30.826 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=313] [jobType="alter table multi-schema change"] [2024/05/06 09:47:30.826 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=313] [conn=3] [job="ID:313, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.830 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:313, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.663 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.832 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=313] [2024/05/06 09:47:30.832 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:30.833 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=684] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:30.837 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:314, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:30.837 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:30.847 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=313] [elementID=1] [startKey=74800000000000006f5f698000000000000020] [endKey=74800000000000006f5f698000000000000021] [2024/05/06 09:47:30.849 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.849 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.850 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":57,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:30.850 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.852 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=684] [neededSchemaVersion=685] ["start time"=360.248µs] [gotSchemaVersion=685] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.853 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=685] [2024/05/06 09:47:30.854 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=685] ["take time"=2.90826ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.855 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.860 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.860 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.862 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.865 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=685] [neededSchemaVersion=686] ["start time"=513.645µs] [gotSchemaVersion=686] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.866 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=686] [2024/05/06 09:47:30.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=686] ["take time"=2.575991ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.868 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.873 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.873 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.874 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.876 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=686] [neededSchemaVersion=687] ["start time"=753.363µs] [gotSchemaVersion=687] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.878 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=687] [2024/05/06 09:47:30.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=687] ["take time"=8.565908ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.885 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.894 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.894 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.896 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":58,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:30.896 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.899 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=687] [neededSchemaVersion=688] ["start time"=557.987µs] [gotSchemaVersion=688] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.900 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=688] [2024/05/06 09:47:30.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=688] ["take time"=2.211397ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.901 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.914 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.914 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.918 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.922 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=688] [neededSchemaVersion=689] ["start time"=570.744µs] [gotSchemaVersion=689] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.924 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=689] [2024/05/06 09:47:30.943 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=689] ["take time"=22.082801ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.950 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.959 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.959 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:30.961 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.963 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=689] [neededSchemaVersion=690] ["start time"=506.612µs] [gotSchemaVersion=690] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:30.965 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=690] [2024/05/06 09:47:30.966 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=690] ["take time"=4.047494ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.967 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.971 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.971 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.972 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [category=ddl] [job="ID:314, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:30.972 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.975 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=690] [neededSchemaVersion=691] ["start time"=596.843µs] [gotSchemaVersion=691] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:30.976 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=314] [version=691] [2024/05/06 09:47:30.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=691] ["take time"=2.076204ms] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.977 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.983 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.984 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.986 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=314] [2024/05/06 09:47:30.987 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.994 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=314] [conn=3] [job="ID:314, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:30.999 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:314, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:30.834 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.000 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=314] [2024/05/06 09:47:31.000 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:31.000 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=691] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:31.004 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:315, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:31.004 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:315, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:31.020 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.020 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.021 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":33,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:31.021 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:31.024 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.026 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=691] [neededSchemaVersion=692] ["start time"=544.917µs] [gotSchemaVersion=692] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.027 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=692] [2024/05/06 09:47:31.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=692] ["take time"=2.766502ms] [job="ID:315, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.029 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.034 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.034 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.035 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.037 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=692] [neededSchemaVersion=693] ["start time"=535.545µs] [gotSchemaVersion=693] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.038 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=693] [2024/05/06 09:47:31.047 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=693] ["take time"=10.152501ms] [job="ID:315, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.048 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.054 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.055 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.056 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.073 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=693] [neededSchemaVersion=694] ["start time"=551.883µs] [gotSchemaVersion=694] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.074 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=694] [2024/05/06 09:47:31.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=694] ["take time"=14.529689ms] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.103 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.110 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.110 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.110 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.111 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=315] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:31.119 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.120 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.121 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.127 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.127 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.127 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.129 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:33,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:31.130 +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:47:31.130 +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:47:31.130 +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:47:31.141 +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:47:31.141 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.142 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.142 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.148 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.148 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.149 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.165 +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:47:31.165 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.165 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.166 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.172 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.172 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.172 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.184 +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:47:31.184 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.185 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.185 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.191 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.191 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.192 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.205 +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:47:31.205 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.206 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.206 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.213 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.213 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.213 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.227 +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:47:31.227 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.227 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.228 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.246 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.315 +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:47:31.315 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.316 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.317 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.322 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.323 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:512, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.323 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.361 +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: 315"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=130.483163ms] [2024/05/06 09:47:31.361 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=315] [2024/05/06 09:47:31.361 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:33,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:31.395 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1664] [2024/05/06 09:47:31.395 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1664, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.396 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.396 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1664, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.402 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1664, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.402 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1664, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.403 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=315] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:31.404 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:31.461 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.463 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=694] [neededSchemaVersion=695] ["start time"=516.563µs] [gotSchemaVersion=695] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.465 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=695] [2024/05/06 09:47:31.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=695] ["take time"=4.290383ms] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.474 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.481 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.481 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037385379841, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.482 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=315] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:31.484 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.486 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=695] [neededSchemaVersion=696] ["start time"=566.773µs] [gotSchemaVersion=696] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.488 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=696] [2024/05/06 09:47:31.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=696] ["take time"=5.430252ms] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.492 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.500 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.500 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.501 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=315] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000021] [endKey=74800000000000006f5f69ffff000000000021ff] [2024/05/06 09:47:31.503 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.504 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.504 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.538 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.538 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.540 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:33,StartKey:74800000000000006f5f69ffff000000000021,EndKey:74800000000000006f5f69ffff000000000021ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:31.574 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000021] ["end key"=74800000000000006f5f69ffff000000000021ff] [2024/05/06 09:47:31.574 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000021] [endKey=74800000000000006f5f69ffff000000000021ff] [2024/05/06 09:47:31.574 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000021ff] ["current end key"=74800000000000006f5f69ffff00000000002100] [2024/05/06 09:47:31.597 +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:47:31.597 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.598 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.599 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.620 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.620 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.669 +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:47:31.669 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.669 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.670 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.674 +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: [74800000000000006f5f69ffff000000000021, 74800000000000006f5f69ffff00000000002100), jobID: 315"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000210000] ["take time"=147.375µs] [2024/05/06 09:47:31.674 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=315] [2024/05/06 09:47:31.675 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:33,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000021] [2024/05/06 09:47:31.675 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.675 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=315] [conn=3] [category=ddl] [job="ID:315, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.677 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:31.716 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:31.716 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:315, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.718 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=696] [neededSchemaVersion=697] ["start time"=568.818µs] [gotSchemaVersion=697] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:31.720 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=315] [version=697] [2024/05/06 09:47:31.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=697] ["take time"=20.332189ms] [job="ID:315, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.739 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.746 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=315] [tableID=111] [indexIDs="[9223090561878065185]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:31.747 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=315] [jobType="add index"] [2024/05/06 09:47:31.748 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=315] [conn=3] [job="ID:315, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.750 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=315] [elementID=1] [startKey=74800000000000006f5f69ffff000000000021] [endKey=74800000000000006f5f69ffff000000000022] [2024/05/06 09:47:31.751 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:315, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:31.001 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037487878144, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.753 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=315] [2024/05/06 09:47:31.753 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:31.754 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=697] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:31.756 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:316, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:31.756 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:31.761 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.761 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:31.762 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.762 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=316] [2024/05/06 09:47:31.763 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.774 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.774 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:31.775 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.783 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=316] [2024/05/06 09:47:31.784 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.791 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.791 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.795 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.796 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.798 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=697] [neededSchemaVersion=698] ["start time"=635.978µs] [gotSchemaVersion=698] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:31.799 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=698] [2024/05/06 09:47:31.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=698] ["take time"=8.402879ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.807 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.812 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.812 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.814 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.835 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=698] [neededSchemaVersion=699] ["start time"=585.8µs] [gotSchemaVersion=699] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:31.836 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=699] [2024/05/06 09:47:31.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=699] ["take time"=39.77537ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.875 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.935 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.935 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.940 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.942 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=699] [neededSchemaVersion=700] ["start time"=868.862µs] [gotSchemaVersion=700] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:31.944 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=700] [2024/05/06 09:47:31.945 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=700] ["take time"=4.074483ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.949 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.952 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.953 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.955 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.960 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=700] [neededSchemaVersion=701] ["start time"=527.177µs] [gotSchemaVersion=701] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:31.962 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=701] [2024/05/06 09:47:31.981 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=701] ["take time"=21.282309ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.982 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.993 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.993 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:31.994 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:31.996 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=701] [neededSchemaVersion=702] ["start time"=559.089µs] [gotSchemaVersion=702] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:31.998 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=702] [2024/05/06 09:47:32.006 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=702] ["take time"=10.618995ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.007 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.014 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.014 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:32.016 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.019 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=702] [neededSchemaVersion=703] ["start time"=532.693µs] [gotSchemaVersion=703] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:32.021 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=703] [2024/05/06 09:47:32.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=703] ["take time"=13.280092ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.036 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.043 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.044 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [category=ddl] [job="ID:316, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:32.044 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.047 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=703] [neededSchemaVersion=704] ["start time"=524.346µs] [gotSchemaVersion=704] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:32.049 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=316] [version=704] [2024/05/06 09:47:32.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=704] ["take time"=4.950345ms] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.052 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.058 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.058 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.063 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=316] [2024/05/06 09:47:32.064 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.068 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=316] [tableID=111] [indexIDs="[33]"] [comment="drop column: table ID"] [2024/05/06 09:47:32.071 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=316] [jobType="alter table multi-schema change"] [2024/05/06 09:47:32.071 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=316] [conn=3] [job="ID:316, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.084 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:316, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:31.755 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.091 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=316] [elementID=1] [startKey=74800000000000006f5f698000000000000021] [endKey=74800000000000006f5f698000000000000022] [2024/05/06 09:47:32.093 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=316] [2024/05/06 09:47:32.093 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:32.093 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=704] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:32.099 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:317, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:32.099 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:32.106 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.107 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.107 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":59,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:32.108 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.110 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=704] [neededSchemaVersion=705] ["start time"=558.764µs] [gotSchemaVersion=705] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.112 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=705] [2024/05/06 09:47:32.123 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=705] ["take time"=13.700464ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.132 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.143 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.143 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.144 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.147 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=705] [neededSchemaVersion=706] ["start time"=527.437µs] [gotSchemaVersion=706] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.148 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=706] [2024/05/06 09:47:32.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=706] ["take time"=40.02734ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.187 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.192 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.192 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.193 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.198 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=706] [neededSchemaVersion=707] ["start time"=557.498µs] [gotSchemaVersion=707] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.200 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=707] [2024/05/06 09:47:32.202 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=707] ["take time"=5.135782ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.204 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.210 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.210 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.210 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":60,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:32.211 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.216 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=707] [neededSchemaVersion=708] ["start time"=577.057µs] [gotSchemaVersion=708] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.218 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=708] [2024/05/06 09:47:32.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=708] ["take time"=16.004709ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.233 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.242 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.242 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.243 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.245 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=708] [neededSchemaVersion=709] ["start time"=439.284µs] [gotSchemaVersion=709] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.246 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=709] [2024/05/06 09:47:32.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=709] ["take time"=2.554802ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.252 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.269 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.269 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:32.271 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.274 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=709] [neededSchemaVersion=710] ["start time"=565.313µs] [gotSchemaVersion=710] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:32.275 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=710] [2024/05/06 09:47:32.286 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=710] ["take time"=12.264657ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.287 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.305 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.305 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:32.306 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [category=ddl] [job="ID:317, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:32.306 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=710] [neededSchemaVersion=711] ["start time"=572.362µs] [gotSchemaVersion=711] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:32.310 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=317] [version=711] [2024/05/06 09:47:32.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=711] ["take time"=3.081927ms] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.313 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.319 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.319 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.321 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=317] [2024/05/06 09:47:32.322 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.327 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=317] [conn=3] [job="ID:317, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.331 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:317, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.095 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.332 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=317] [2024/05/06 09:47:32.332 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:32.333 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=711] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:32.337 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:318, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:32.337 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:318, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:32.346 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.346 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.347 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":34,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:32.347 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:32.349 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.352 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=711] [neededSchemaVersion=712] ["start time"=573.572µs] [gotSchemaVersion=712] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:32.353 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=712] [2024/05/06 09:47:32.360 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=712] ["take time"=8.477357ms] [job="ID:318, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.361 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.367 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.367 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.368 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.370 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=712] [neededSchemaVersion=713] ["start time"=579.73µs] [gotSchemaVersion=713] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:32.372 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=713] [2024/05/06 09:47:32.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=713] ["take time"=20.522795ms] [job="ID:318, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.391 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.398 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.398 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.399 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.402 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=713] [neededSchemaVersion=714] ["start time"=591.512µs] [gotSchemaVersion=714] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:32.403 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=714] [2024/05/06 09:47:32.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=714] ["take time"=4.099291ms] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.406 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.426 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.426 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.426 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.427 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=318] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:32.443 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.444 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.445 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.451 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.451 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.451 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.453 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:34,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:32.454 +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:47:32.454 +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:47:32.454 +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:47:32.471 +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:47:32.471 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.473 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.474 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.485 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.485 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.486 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.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:47:32.501 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.502 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.502 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.509 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.509 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.509 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.524 +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:47:32.524 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.525 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.525 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.534 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.534 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.534 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.554 +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:47:32.554 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.555 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.555 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.563 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.563 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.563 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.658 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=288] [2024/05/06 09:47:32.658 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:288, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.660 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.661 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:288, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.668 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:288, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.668 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:288, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.668 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.712 +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: 318"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=153.386688ms] [2024/05/06 09:47:32.713 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=318] [2024/05/06 09:47:32.713 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:34,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:32.722 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1568] [2024/05/06 09:47:32.722 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1568, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.723 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.724 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1568, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.730 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1568, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.730 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1568, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.731 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=318] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:32.732 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:32.803 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.814 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=714] [neededSchemaVersion=715] ["start time"=567.138µs] [gotSchemaVersion=715] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:32.815 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=715] [2024/05/06 09:47:32.826 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=715] ["take time"=12.653017ms] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.827 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.834 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.834 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037730361345, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.834 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=318] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:32.835 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.839 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=715] [neededSchemaVersion=716] ["start time"=568.863µs] [gotSchemaVersion=716] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:32.840 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=716] [2024/05/06 09:47:32.842 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=716] ["take time"=5.750232ms] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.843 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.850 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.850 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.851 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=318] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000022] [endKey=74800000000000006f5f69ffff000000000022ff] [2024/05/06 09:47:32.853 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.854 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.855 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.862 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.862 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.864 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:34,StartKey:74800000000000006f5f69ffff000000000022,EndKey:74800000000000006f5f69ffff000000000022ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:32.865 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000022] ["end key"=74800000000000006f5f69ffff000000000022ff] [2024/05/06 09:47:32.865 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000022] [endKey=74800000000000006f5f69ffff000000000022ff] [2024/05/06 09:47:32.866 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000022ff] ["current end key"=74800000000000006f5f69ffff00000000002200] [2024/05/06 09:47:32.959 +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:47:32.959 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.960 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=318] [2024/05/06 09:47:32.961 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.972 +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: [74800000000000006f5f69ffff000000000022, 74800000000000006f5f69ffff00000000002200), jobID: 318"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000220000] ["take time"=143.3µs] [2024/05/06 09:47:32.972 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=318] [2024/05/06 09:47:32.972 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:34,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000022] [2024/05/06 09:47:32.973 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.973 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=318] [conn=3] [category=ddl] [job="ID:318, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:32.975 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:33.029 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:33.029 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:318, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.032 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=716] [neededSchemaVersion=717] ["start time"=560.913µs] [gotSchemaVersion=717] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.033 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=318] [version=717] [2024/05/06 09:47:33.035 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=717] ["take time"=4.011229ms] [job="ID:318, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.036 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.043 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=318] [tableID=111] [indexIDs="[9223090561878065186]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:33.044 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=318] [jobType="add index"] [2024/05/06 09:47:33.045 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=318] [conn=3] [job="ID:318, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.050 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:318, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:32.334 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574037841772544, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.053 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=318] [2024/05/06 09:47:33.053 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:33.053 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=717] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:33.056 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:319, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:33.056 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:33.056 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=318] [elementID=1] [startKey=74800000000000006f5f69ffff000000000022] [endKey=74800000000000006f5f69ffff000000000023] [2024/05/06 09:47:33.066 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.066 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.067 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.068 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=319] [2024/05/06 09:47:33.068 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.086 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.086 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.087 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.089 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=319] [2024/05/06 09:47:33.090 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.094 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.094 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.098 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.099 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.101 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=717] [neededSchemaVersion=718] ["start time"=552.179µs] [gotSchemaVersion=718] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:33.103 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=718] [2024/05/06 09:47:33.103 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=718] ["take time"=2.380986ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.110 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.115 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.115 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.125 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.128 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=718] [neededSchemaVersion=719] ["start time"=554.487µs] [gotSchemaVersion=719] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.130 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=719] [2024/05/06 09:47:33.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=719] ["take time"=5.715531ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.133 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.136 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.137 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.139 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.141 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=719] [neededSchemaVersion=720] ["start time"=540.278µs] [gotSchemaVersion=720] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.142 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=720] [2024/05/06 09:47:33.147 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=720] ["take time"=6.544799ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.148 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.179 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.179 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.191 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.197 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=720] [neededSchemaVersion=721] ["start time"=564.359µs] [gotSchemaVersion=721] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.198 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=721] [2024/05/06 09:47:33.201 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=721] ["take time"=4.888516ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.202 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.218 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.219 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.223 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.227 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=721] [neededSchemaVersion=722] ["start time"=428.97µs] [gotSchemaVersion=722] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.228 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=722] [2024/05/06 09:47:33.228 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=722] ["take time"=2.121627ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.231 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.237 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.237 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.238 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.242 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=722] [neededSchemaVersion=723] ["start time"=551.352µs] [gotSchemaVersion=723] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.243 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=723] [2024/05/06 09:47:33.246 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=723] ["take time"=4.918047ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.254 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.260 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.260 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [category=ddl] [job="ID:319, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.261 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.264 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=723] [neededSchemaVersion=724] ["start time"=512.878µs] [gotSchemaVersion=724] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:33.265 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=319] [version=724] [2024/05/06 09:47:33.265 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=724] ["take time"=2.038895ms] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.266 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.271 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.271 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.272 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=319] [2024/05/06 09:47:33.273 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.276 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=319] [tableID=111] [indexIDs="[34]"] [comment="drop column: table ID"] [2024/05/06 09:47:33.278 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=319] [jobType="alter table multi-schema change"] [2024/05/06 09:47:33.278 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=319] [conn=3] [job="ID:319, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.281 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:319, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.055 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.284 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=319] [2024/05/06 09:47:33.284 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:33.285 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=724] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:33.288 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:320, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:33.288 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:33.304 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=319] [elementID=1] [startKey=74800000000000006f5f698000000000000022] [endKey=74800000000000006f5f698000000000000023] [2024/05/06 09:47:33.306 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.306 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.306 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":61,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:33.307 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.309 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=724] [neededSchemaVersion=725] ["start time"=547.221µs] [gotSchemaVersion=725] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.311 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=725] [2024/05/06 09:47:33.316 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=725] ["take time"=7.33257ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.317 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.321 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.321 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.322 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.324 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=725] [neededSchemaVersion=726] ["start time"=520.835µs] [gotSchemaVersion=726] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.325 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=726] [2024/05/06 09:47:33.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=726] ["take time"=4.441478ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.331 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.336 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.336 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.339 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.350 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=726] [neededSchemaVersion=727] ["start time"=497.088µs] [gotSchemaVersion=727] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.351 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=727] [2024/05/06 09:47:33.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=727] ["take time"=13.077028ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.355 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.366 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.366 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.367 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":62,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:33.367 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.373 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=727] [neededSchemaVersion=728] ["start time"=533.456µs] [gotSchemaVersion=728] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.376 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=728] [2024/05/06 09:47:33.376 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=728] ["take time"=4.016205ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.377 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.382 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.382 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.383 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.388 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=728] [neededSchemaVersion=729] ["start time"=538.617µs] [gotSchemaVersion=729] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.389 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=729] [2024/05/06 09:47:33.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=729] ["take time"=4.23416ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.392 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.400 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.400 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:33.401 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.403 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=729] [neededSchemaVersion=730] ["start time"=508.305µs] [gotSchemaVersion=730] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:33.405 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=730] [2024/05/06 09:47:33.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=730] ["take time"=10.05702ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.414 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.421 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.421 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.423 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [category=ddl] [job="ID:320, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:33.423 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.431 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=730] [neededSchemaVersion=731] ["start time"=563.319µs] [gotSchemaVersion=731] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:33.433 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=320] [version=731] [2024/05/06 09:47:33.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=731] ["take time"=4.779453ms] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.435 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.441 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.442 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.443 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=320] [2024/05/06 09:47:33.444 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.450 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=320] [conn=3] [job="ID:320, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.456 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:320, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.287 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.458 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=320] [2024/05/06 09:47:33.458 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:33.458 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=731] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:33.461 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:321, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:33.461 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:321, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:33.474 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.474 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.475 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":35,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:33.475 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:33.475 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.478 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=731] [neededSchemaVersion=732] ["start time"=534.393µs] [gotSchemaVersion=732] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.479 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=732] [2024/05/06 09:47:33.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=732] ["take time"=6.933198ms] [job="ID:321, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.485 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.496 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.497 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.503 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.506 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=732] [neededSchemaVersion=733] ["start time"=525.435µs] [gotSchemaVersion=733] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.508 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=733] [2024/05/06 09:47:33.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=733] ["take time"=4.204633ms] [job="ID:321, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.513 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.519 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.519 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.522 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.532 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=733] [neededSchemaVersion=734] ["start time"=600.712µs] [gotSchemaVersion=734] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.534 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=734] [2024/05/06 09:47:33.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=734] ["take time"=4.026977ms] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.539 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.558 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.558 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.559 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.559 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=321] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:33.575 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.576 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.576 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.583 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.587 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.588 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.589 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:35,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:33.590 +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:47:33.590 +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:47:33.591 +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:47:33.601 +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:47:33.601 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.602 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.602 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.609 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.609 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.609 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.629 +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:47:33.629 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.630 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.630 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.637 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.637 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.637 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.654 +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:47:33.654 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.655 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.656 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.662 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.662 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.663 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.676 +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:47:33.676 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.677 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.678 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.698 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.698 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.698 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.762 +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:47:33.763 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.765 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.765 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.771 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.771 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:416, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.772 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.792 +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: 321"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=99.057629ms] [2024/05/06 09:47:33.792 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=321] [2024/05/06 09:47:33.792 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:35,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:33.823 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=1824] [2024/05/06 09:47:33.823 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1824, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.824 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.825 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1824, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.853 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1824, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.853 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:1824, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.853 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=321] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:33.856 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:33.903 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.905 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=734] [neededSchemaVersion=735] ["start time"=536.058µs] [gotSchemaVersion=735] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.906 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=735] [2024/05/06 09:47:33.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=735] ["take time"=2.018804ms] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.908 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.915 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.915 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038027370496, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.915 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=321] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:33.918 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.925 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=735] [neededSchemaVersion=736] ["start time"=763.396µs] [gotSchemaVersion=736] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:33.927 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=736] [2024/05/06 09:47:33.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=736] ["take time"=10.062908ms] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.935 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.942 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.942 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.942 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=321] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000023] [endKey=74800000000000006f5f69ffff000000000023ff] [2024/05/06 09:47:33.945 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.946 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:33.946 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.959 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.959 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:33.961 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:35,StartKey:74800000000000006f5f69ffff000000000023,EndKey:74800000000000006f5f69ffff000000000023ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:33.962 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000023] ["end key"=74800000000000006f5f69ffff000000000023ff] [2024/05/06 09:47:33.962 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000023] [endKey=74800000000000006f5f69ffff000000000023ff] [2024/05/06 09:47:33.962 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000023ff] ["current end key"=74800000000000006f5f69ffff00000000002300] [2024/05/06 09:47:34.048 +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:47:34.048 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.049 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=321] [2024/05/06 09:47:34.050 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.055 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.055 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=321] [conn=3] [category=ddl] [job="ID:321, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.065 +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: [74800000000000006f5f69ffff000000000023, 74800000000000006f5f69ffff00000000002300), jobID: 321"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000230000] ["take time"=254.338µs] [2024/05/06 09:47:34.065 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=321] [2024/05/06 09:47:34.065 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:35,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000023] [2024/05/06 09:47:34.065 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:34.120 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:34.120 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:321, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.123 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=736] [neededSchemaVersion=737] ["start time"=567.527µs] [gotSchemaVersion=737] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:34.125 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=321] [version=737] [2024/05/06 09:47:34.134 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=737] ["take time"=11.626904ms] [job="ID:321, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.135 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.142 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=321] [tableID=111] [indexIDs="[9223090561878065187]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:34.143 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=321] [jobType="add index"] [2024/05/06 09:47:34.143 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=321] [conn=3] [job="ID:321, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.151 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=321] [elementID=1] [startKey=74800000000000006f5f69ffff000000000023] [endKey=74800000000000006f5f69ffff000000000024] [2024/05/06 09:47:34.152 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:321, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:33.46 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038127771649, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.163 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=321] [2024/05/06 09:47:34.163 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:34.167 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=737] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:34.174 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:322, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:34.174 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:34.181 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.181 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.181 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.182 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=322] [2024/05/06 09:47:34.183 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.192 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.192 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.192 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.195 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=322] [2024/05/06 09:47:34.195 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.201 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.201 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.204 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.204 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.207 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=737] [neededSchemaVersion=738] ["start time"=578.769µs] [gotSchemaVersion=738] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:34.208 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=738] [2024/05/06 09:47:34.211 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=738] ["take time"=4.552194ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.211 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.224 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.225 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.227 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.237 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=738] [neededSchemaVersion=739] ["start time"=507.051µs] [gotSchemaVersion=739] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.239 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=739] [2024/05/06 09:47:34.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=739] ["take time"=4.010961ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.241 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.246 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.246 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.247 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.250 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=739] [neededSchemaVersion=740] ["start time"=618.68µs] [gotSchemaVersion=740] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.258 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=740] [2024/05/06 09:47:34.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=740] ["take time"=10.188262ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.260 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.266 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.266 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.267 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.270 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=740] [neededSchemaVersion=741] ["start time"=603.738µs] [gotSchemaVersion=741] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.273 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=741] [2024/05/06 09:47:34.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=741] ["take time"=4.102966ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.275 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.281 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.281 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.282 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.285 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=741] [neededSchemaVersion=742] ["start time"=521.361µs] [gotSchemaVersion=742] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.286 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=742] [2024/05/06 09:47:34.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=742] ["take time"=4.21349ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.289 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.298 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.298 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.301 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.304 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=742] [neededSchemaVersion=743] ["start time"=477.387µs] [gotSchemaVersion=743] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.305 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=743] [2024/05/06 09:47:34.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=743] ["take time"=2.077ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.306 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.312 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.312 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [category=ddl] [job="ID:322, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.313 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.315 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=743] [neededSchemaVersion=744] ["start time"=479.699µs] [gotSchemaVersion=744] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:34.317 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=322] [version=744] [2024/05/06 09:47:34.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=744] ["take time"=4.0706ms] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.320 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.327 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.328 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.333 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=322] [2024/05/06 09:47:34.333 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.339 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=322] [tableID=111] [indexIDs="[35]"] [comment="drop column: table ID"] [2024/05/06 09:47:34.350 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=322] [jobType="alter table multi-schema change"] [2024/05/06 09:47:34.351 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=322] [conn=3] [job="ID:322, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.355 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:322, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.169 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.369 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=322] [2024/05/06 09:47:34.369 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:34.369 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=744] [cur_db=test] [sql="alter table t add column c41 bigint, add column c42 bigint"] [user=] [2024/05/06 09:47:34.373 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:323, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:34.373 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add column c41 bigint, add column c42 bigint"] [2024/05/06 09:47:34.382 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.382 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.383 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":63,\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:34.383 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.387 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=744] [neededSchemaVersion=745] ["start time"=533.127µs] [gotSchemaVersion=745] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.389 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=745] [2024/05/06 09:47:34.398 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=322] [elementID=1] [startKey=74800000000000006f5f698000000000000023] [endKey=74800000000000006f5f698000000000000024] [2024/05/06 09:47:34.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=745] ["take time"=15.951587ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.404 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.411 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.411 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.414 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.417 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=745] [neededSchemaVersion=746] ["start time"=532.774µs] [gotSchemaVersion=746] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.418 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=746] [2024/05/06 09:47:34.436 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=746] ["take time"=19.789052ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.438 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.444 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.444 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.473 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.476 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=746] [neededSchemaVersion=747] ["start time"=567.309µs] [gotSchemaVersion=747] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.477 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=747] [2024/05/06 09:47:34.480 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=747] ["take time"=5.217528ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.481 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.489 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.490 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.492 +00:00] [INFO] [column.go:135] ["run add column job"] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:4, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [columnInfo="{\"id\":64,\"name\":{\"O\":\"c42\",\"L\":\"c42\"},\"offset\":6,\"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:47:34.492 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.495 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=747] [neededSchemaVersion=748] ["start time"=584.299µs] [gotSchemaVersion=748] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.499 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=748] [2024/05/06 09:47:34.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=748] ["take time"=6.031066ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.501 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.512 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.512 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.514 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.517 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=748] [neededSchemaVersion=749] ["start time"=884.283µs] [gotSchemaVersion=749] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.520 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=749] [2024/05/06 09:47:34.526 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=749] ["take time"=10.133502ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.527 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.533 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.533 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:34.534 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.536 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=749] [neededSchemaVersion=750] ["start time"=511.22µs] [gotSchemaVersion=750] [phyTblIDs="[111]"] [actionTypes="[5]"] [diffTypes="[\"add column\"]"] [2024/05/06 09:47:34.538 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=750] [2024/05/06 09:47:34.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=750] ["take time"=4.416621ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.541 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.547 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.548 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.551 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [category=ddl] [job="ID:323, Type:add column, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:34.552 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.555 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=750] [neededSchemaVersion=751] ["start time"=526.493µs] [gotSchemaVersion=751] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:34.556 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=323] [version=751] [2024/05/06 09:47:34.558 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=751] ["take time"=4.045923ms] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.559 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.563 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.564 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.565 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=323] [2024/05/06 09:47:34.566 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.571 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=323] [conn=3] [job="ID:323, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.576 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:323, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.371 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.576 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=323] [2024/05/06 09:47:34.576 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:34.576 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=751] [cur_db=test] [sql="alter table t add index drop_columns_idx(c41)"] [user=] [2024/05/06 09:47:34.582 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:324, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:34.582 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:324, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t add index drop_columns_idx(c41)"] [2024/05/06 09:47:34.588 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.588 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.588 +00:00] [INFO] [index.go:654] ["run add index job"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [indexInfo="{\"id\":36,\"idx_name\":{\"O\":\"drop_columns_idx\",\"L\":\"drop_columns_idx\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c41\",\"L\":\"c41\"},\"offset\":5,\"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:47:34.588 +00:00] [INFO] [index.go:817] ["fallback to txn-merge backfill process"] [category=ddl] ["lightning env initialized"=false] [2024/05/06 09:47:34.589 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.591 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=751] [neededSchemaVersion=752] ["start time"=602.416µs] [gotSchemaVersion=752] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:34.592 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=752] [2024/05/06 09:47:34.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=752] ["take time"=2.01451ms] [job="ID:324, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.593 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.606 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.607 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.607 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.610 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=752] [neededSchemaVersion=753] ["start time"=547.564µs] [gotSchemaVersion=753] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:34.611 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=753] [2024/05/06 09:47:34.613 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=753] ["take time"=4.407982ms] [job="ID:324, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.614 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.621 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.621 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.622 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.625 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=753] [neededSchemaVersion=754] ["start time"=533.418µs] [gotSchemaVersion=754] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:34.627 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=754] [2024/05/06 09:47: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=754] ["take time"=6.448237ms] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.631 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.639 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.639 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.640 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.641 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=324] [physicalTableID=111] [startKey=74800000000000006f5f728000000000000001] [endKey=74800000000000006f5f72800000000000080100] [2024/05/06 09:47:34.643 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.644 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.645 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.653 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.653 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.653 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.655 +00:00] [INFO] [index.go:1931] ["start to add table index"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:36,StartKey:74800000000000006f5f728000000000000001,EndKey:74800000000000006f5f72800000000000080100,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:34.656 +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:47:34.656 +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:47:34.656 +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:47:34.665 +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:47:34.665 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.666 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.667 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.674 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.674 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 9, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.674 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.686 +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:47:34.686 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.687 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.687 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.693 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.694 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.694 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.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:47:34.709 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.710 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.710 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.719 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.719 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.720 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.739 +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:47:34.739 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.740 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.740 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.747 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.747 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.748 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.760 +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:47:34.760 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.761 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.761 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.769 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.769 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.769 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.928 +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: 324"] ["added count"=2049] ["scan count"=2049] ["next key"=74800000000000006f5f72800000000000080100] ["take time"=170.202394ms] [2024/05/06 09:47:34.928 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp add index"] [jobID=324] [2024/05/06 09:47:34.928 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:36,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f728000000000000001] [2024/05/06 09:47:34.930 +00:00] [INFO] [reorg.go:262] ["run reorg job wait timeout"] [category=ddl] ["wait time"=10ms] ["total added row count"=896] [2024/05/06 09:47:34.930 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:896, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.934 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:34.935 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:896, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.946 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:896, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.946 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:896, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:34.946 +00:00] [INFO] [index.go:857] ["index backfill state running"] [category=ddl] ["job ID"=324] [table=t] ["ingest mode"=false] [index=drop_columns_idx] [2024/05/06 09:47:34.949 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:35.114 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.117 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=754] [neededSchemaVersion=755] ["start time"=635.929µs] [gotSchemaVersion=755] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:35.118 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=755] [2024/05/06 09:47:35.123 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=755] ["take time"=7.37632ms] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.124 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.131 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.131 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038310748160, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.132 +00:00] [INFO] [index.go:880] ["index backfill state ready to merge"] [category=ddl] ["job ID"=324] [table=t] [index=drop_columns_idx] [2024/05/06 09:47:35.140 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.144 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=755] [neededSchemaVersion=756] ["start time"=614.265µs] [gotSchemaVersion=756] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:35.146 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=756] [2024/05/06 09:47:35.147 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=756] ["take time"=4.865536ms] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.148 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.155 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.155 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.155 +00:00] [INFO] [reorg.go:718] ["job get table range"] [category=ddl] [jobID=324] [physicalTableID=111] [startKey=74800000000000006f5f69ffff000000000024] [endKey=74800000000000006f5f69ffff000000000024ff] [2024/05/06 09:47:35.162 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.163 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:35.164 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.175 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.175 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 8, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.189 +00:00] [INFO] [index.go:1928] ["start to merge temp index"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [reorgInfo="CurrElementType:_idx_,CurrElementID:36,StartKey:74800000000000006f5f69ffff000000000024,EndKey:74800000000000006f5f69ffff000000000024ff,First:false,PhysicalTableID:111,Ingest mode:false"] [2024/05/06 09:47:35.190 +00:00] [INFO] [backfilling.go:416] ["split table range from PD"] [category=ddl] [physicalTableID=111] ["start key"=74800000000000006f5f69ffff000000000024] ["end key"=74800000000000006f5f69ffff000000000024ff] [2024/05/06 09:47:35.190 +00:00] [INFO] [backfilling.go:692] ["start backfill workers to reorg record"] [category=ddl] [type="merge temporary index"] [workerCnt=1] [regionCnt=1] [startKey=74800000000000006f5f69ffff000000000024] [endKey=74800000000000006f5f69ffff000000000024ff] [2024/05/06 09:47:35.191 +00:00] [INFO] [backfilling.go:475] ["get backfill range task, change end key"] [category=ddl] [id=1] [pTbl=111] ["end key"=74800000000000006f5f69ffff000000000024ff] ["current end key"=74800000000000006f5f69ffff00000000002400] [2024/05/06 09:47:35.258 +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:47:35.258 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.259 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=324] [2024/05/06 09:47:35.259 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:6, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.280 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.280 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 10, tp add index"] [category=ddl] [jobID=324] [conn=3] [category=ddl] [job="ID:324, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:111, RowCount:2049, ArgLen:0, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.298 +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: [74800000000000006f5f69ffff000000000024, 74800000000000006f5f69ffff00000000002400), jobID: 324"] ["added count"=0] ["scan count"=0] ["next key"=74800000000000006f5f69ffff0000000000240000] ["take time"=210.776µs] [2024/05/06 09:47:35.298 +00:00] [INFO] [backfilling.go:369] ["backfill worker exit"] [category=ddl] [worker="backfill-worker 0, tp merge temporary index"] [jobID=324] [2024/05/06 09:47:35.298 +00:00] [INFO] [backfilling.go:632] ["backfill workers successfully processed"] [category=ddl] [element=ID:36,TypeKey:_idx_] ["total added count"=2049] ["start key"=74800000000000006f5f69ffff000000000024] [2024/05/06 09:47:35.298 +00:00] [INFO] [reorg.go:232] ["run reorg job done"] [category=ddl] ["handled rows"=2049] [2024/05/06 09:47:35.432 +00:00] [INFO] [index.go:781] ["run add index job done"] [category=ddl] [charset=utf8mb4] [collation=utf8mb4_bin] [2024/05/06 09:47:35.432 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:324, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.436 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=756] [neededSchemaVersion=757] ["start time"=618.476µs] [gotSchemaVersion=757] [phyTblIDs="[111]"] [actionTypes="[7]"] [diffTypes="[\"add index\"]"] [2024/05/06 09:47:35.438 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=324] [version=757] [2024/05/06 09:47:35.442 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=757] ["take time"=7.051295ms] [job="ID:324, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.445 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:done, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.451 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=324] [tableID=111] [indexIDs="[9223090561878065188]"] [comment="add index: physical table ID(s)"] [2024/05/06 09:47:35.453 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=324] [jobType="add index"] [2024/05/06 09:47:35.453 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 7, tp add index"] [category=ddl] [jobID=324] [conn=3] [job="ID:324, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.460 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=324] [elementID=1] [startKey=74800000000000006f5f69ffff000000000024] [endKey=74800000000000006f5f69ffff000000000025] [2024/05/06 09:47:35.463 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=324] [2024/05/06 09:47:35.463 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:35.463 +00:00] [INFO] [session.go:3945] ["CRUCIAL OPERATION"] [conn=3] [schemaVersion=757] [cur_db=test] [sql="alter table t drop column c41, drop column c42"] [user=] [2024/05/06 09:47:35.466 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:324, Type:add index, State:synced, SchemaState:public, SchemaID:2, TableID:111, RowCount:2049, ArgLen:3, start time: 2024-05-06 09:47:34.578 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:449574038445752321, LocalMode: false, UniqueWarnings:0"] testutil.go:118: Error Trace: pkg/ddl/testutil/testutil.go:118 Error: not multi-schema change(sql: alter table t drop column c41, drop column c42, cancel state: [delete reorganization delete only]) Test: TestCancel Messages: use model.SchemaState as the cancel state instead [2024/05/06 09:47:35.486 +00:00] [INFO] [ddl_worker.go:259] ["add DDL jobs"] [category=ddl] ["batch count"=1] [jobs="ID:325, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0; "] [table=true] [2024/05/06 09:47:35.486 +00:00] [INFO] [ddl.go:1182] ["start DDL job"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [query="alter table t drop column c41, drop column c42"] [2024/05/06 09:47:35.493 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:queueing, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.493 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:35.493 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.495 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=325] [2024/05/06 09:47:35.495 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.502 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.502 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:queueing, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:true"] [2024/05/06 09:47:35.502 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.511 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=325] [2024/05/06 09:47:35.512 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.517 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.518 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.518 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:public, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.519 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.521 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=757] [neededSchemaVersion=758] ["start time"=653.445µs] [gotSchemaVersion=758] [phyTblIDs="[111]"] [actionTypes="[61]"] [diffTypes="[\"alter table multi-schema change\"]"] [2024/05/06 09:47:35.523 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=758] [2024/05/06 09:47:35.528 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=758] ["take time"=7.576827ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.530 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.541 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.541 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.548 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.550 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=758] [neededSchemaVersion=759] ["start time"=386.937µs] [gotSchemaVersion=759] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.551 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=759] [2024/05/06 09:47:35.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=759] ["take time"=7.214311ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.557 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.563 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.563 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.564 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.567 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=759] [neededSchemaVersion=760] ["start time"=554.207µs] [gotSchemaVersion=760] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.569 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=760] [2024/05/06 09:47:35.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=760] ["take time"=25.387273ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.593 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.599 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.599 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.610 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.619 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=760] [neededSchemaVersion=761] ["start time"=535.472µs] [gotSchemaVersion=761] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.620 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=761] [2024/05/06 09:47:35.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=761] ["take time"=4.415476ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.624 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.630 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.630 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:write only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.631 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.634 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=761] [neededSchemaVersion=762] ["start time"=544.4µs] [gotSchemaVersion=762] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.636 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=762] [2024/05/06 09:47:35.652 +00:00] [INFO] [schema_version.go:379] ["wait latest schema version changed(get the metadata lock if tidb_enable_metadata_lock is true)"] [category=ddl] [ver=762] ["take time"=18.91345ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.653 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.667 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.667 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:delete only, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.670 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.683 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=762] [neededSchemaVersion=763] ["start time"=1.505789ms] [gotSchemaVersion=763] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.688 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=763] [2024/05/06 09:47:35.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=763] ["take time"=8.862563ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.689 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.696 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.696 +00:00] [INFO] [ddl_worker.go:1185] ["run DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [category=ddl] [job="ID:325, Type:drop column, State:running, SchemaState:delete reorganization, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0, Multi-Schema Change:true, Revertible:false"] [2024/05/06 09:47:35.697 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.700 +00:00] [INFO] [domain.go:280] ["diff load InfoSchema success"] [currentSchemaVersion=763] [neededSchemaVersion=764] ["start time"=472.76µs] [gotSchemaVersion=764] [phyTblIDs="[111]"] [actionTypes="[6]"] [diffTypes="[\"drop column\"]"] [2024/05/06 09:47:35.701 +00:00] [INFO] [domain.go:887] ["mdl gets lock, update self version to owner"] [jobID=325] [version=764] [2024/05/06 09:47:35.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=764] ["take time"=2.041094ms] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.706 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.710 +00:00] [INFO] [callback.go:96] ["on job run before"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:running, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.711 +00:00] [INFO] [callback.go:111] ["on job run after"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.712 +00:00] [INFO] [ddl_worker.go:1396] ["schema version doesn't change"] [category=ddl] [jobID=325] [2024/05/06 09:47:35.713 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:done, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.718 +00:00] [INFO] [delete_range.go:422] ["insert into delete-range indices"] [category=ddl] [jobID=325] [tableID=111] [indexIDs="[36]"] [comment="drop column: table ID"] [2024/05/06 09:47:35.725 +00:00] [INFO] [delete_range.go:112] ["add job into delete-range table"] [category=ddl] [jobID=325] [jobType="alter table multi-schema change"] [2024/05/06 09:47:35.725 +00:00] [INFO] [ddl_worker.go:743] ["finish DDL job"] [worker="worker 6, tp general"] [category=ddl] [jobID=325] [conn=3] [job="ID:325, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.736 +00:00] [INFO] [callback.go:122] ["on job updated"] [category=ddl] [job="ID:325, Type:alter table multi-schema change, State:synced, SchemaState:none, SchemaID:2, TableID:111, RowCount:0, ArgLen:0, start time: 2024-05-06 09:47:35.465 +0000 UTC, Err:, ErrCount:0, SnapshotVersion:0, LocalMode: false, UniqueWarnings:0"] [2024/05/06 09:47:35.739 +00:00] [INFO] [ddl.go:1287] ["DDL job is finished"] [category=ddl] [jobID=325] [2024/05/06 09:47:35.739 +00:00] [INFO] [callback.go:70] ["performing DDL change, must reload"] [category=ddl] [2024/05/06 09:47:35.757 +00:00] [INFO] [delete_range.go:259] ["delRange emulator complete task"] [category=ddl] [category=ddl] [jobID=325] [elementID=1] [startKey=74800000000000006f5f698000000000000024] [endKey=74800000000000006f5f698000000000000025] -- Test timed out at 2024-05-06 09:51:51 UTC -- ================================================================================