$ tiup dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock ai
tiup is checking updates for component dmctl …
Starting component dmctl
: /home/tidb/.tiup/components/dmctl/v6.6.0/dmctl/dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock ai
{
“result”: true,
“msg”: “”,
“locks”: [
{
“ID”: “ai-scriptDraft
.t_push
”,
“task”: “ai”,
“mode”: “pessimistic”,
“owner”: “data18000”,
“DDLs”: [
“ALTER TABLE scriptDraft
.t_push
ADD COLUMN studioIntersection
TINYINT(1) NULL DEFAULT NULL COMMENT ‘是否工作室交集用户’ AFTER isWxPublic
”
],
“synced”: [
“data18000”
],
“unsynced”: [
“data18001”,
“data18002”,
“data18003”,
“data18004”,
“data18005”,
“data18006”,
“data18007”
]
},
{
“ID”: “ai-scriptDraft
.t_user_relevance
”,
“task”: “ai”,
“mode”: “pessimistic”,
“owner”: “data18000”,
“DDLs”: [
“ALTER TABLE scriptDraft
.t_user_relevance
ADD COLUMN tags
VARCHAR(255) NULL COMMENT ‘标签’ AFTER studioId
”
],
“synced”: [
“data18000”
],
“unsynced”: [
“data18001”,
“data18002”,
“data18003”,
“data18004”,
“data18005”,
“data18006”,
“data18007”
]
},
{
“ID”: “ai-ai
.t_user
”,
“task”: “ai”,
“mode”: “pessimistic”,
“owner”: “data18002”,
“DDLs”: [
“ALTER TABLE ai
.t_user
ADD COLUMN config
VARCHAR(128) CHARACTER SET UTF8MB4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT ‘用户配置’”
],
“synced”: [
“data18001”,
“data18002”,
“data18003”,
“data18005”,
“data18006”,
“data18007”
],
“unsynced”: [
“data18000”,
“data18004”
]
},
{
“ID”: “ai-aiimdata_0012
.t_user
”,
“task”: “ai”,
“mode”: “pessimistic”,
“owner”: “data18004”,
“DDLs”: [
“ALTER TABLE aiimdata_0012
.t_user
RENAME AS aiimdata_0012
.t_user_1
”
],
“synced”: [
“data18004”
],
“unsynced”: [
“data18000”,
“data18001”,
“data18002”,
“data18003”,
“data18005”,
“data18006”,
“data18007”
]
},
{
“ID”: “ai-scriptDraft
.t_user
”,
“task”: “ai”,
“mode”: “pessimistic”,
“owner”: “data18000”,
“DDLs”: [
“ALTER TABLE scriptDraft
.t_user
DISABLE KEYS”
],
“synced”: [
“data18000”
],
“unsynced”: [
“data18001”,
“data18002”,
“data18003”,
“data18004”,
“data18005”,
“data18006”,
“data18007”
]
}
$ tiup dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock unlock ai-ai
.t_user
-bash: ai: command not found
-bash: t_user: command not found
tiup is checking updates for component dmctl …
Starting component dmctl
: /home/tidb/.tiup/components/dmctl/v6.6.0/dmctl/dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock unlock ai-.
{
“result”: false,
“msg”: “can’t find task name from lock-ID”
}
$ tiup dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock unlock ai-ai.t_user
tiup is checking updates for component dmctl …
Starting component dmctl
: /home/tidb/.tiup/components/dmctl/v6.6.0/dmctl/dmctl --master-addr 127.0.0.1:8261 shard-ddl-lock unlock ai-ai.t_user
{
“result”: false,
“msg”: “can’t find task name from lock-ID”