Skip to content

Commit

Permalink
cherry pick #524 to release-2.0 (#527)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: GMHDBJD <35025882+GMHDBJD@users.noreply.github.com>
  • Loading branch information
ti-srebot and GMHDBJD committed Dec 25, 2020
1 parent 6b0a56a commit 9a10230
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions en/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
+ [Glossary](glossary.md)
+ Release Notes
+ v2.0
- [2.0.1](releases/2.0.1.md)
- [2.0 GA](releases/2.0.0-ga.md)
- [2.0.0-rc.2](releases/2.0.0-rc.2.md)
- [2.0.0-rc](releases/2.0.0-rc.md)
Expand Down
35 changes: 35 additions & 0 deletions en/releases/2.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: DM 2.0.1 Release Notes
---

# DM 2.0.1 Release Notes

Release date: December 25, 2020

DM version: 2.0.1

## Improvements

- Support the relay log feature in high availability scenarios [#1353](https://github.com/pingcap/dm/pull/1353)
- DM-worker supports storing relay logs only locally.
- In scenarios where a DM-worker node is down or is offline due to network fluctuations, the newly scheduled DM-worker pulls the upstream binlog again.
- Restrict the `handle-error` command to only handle DDL errors to avoid misuse [#1303](https://github.com/pingcap/dm/pull/1303)
- Support simultaneously connecting multiple DM-master nodes and automatically switching connected nodes in dmctl [#1349](https://github.com/pingcap/dm/pull/1349)
- Add the `get-config` command to get the configuration of migration tasks and DM components [#1348](https://github.com/pingcap/dm/pull/1348)
- Support migrating SQL statements like `ALTER TABLE ADD COLUMN (xx, xx)` [#1345](https://github.com/pingcap/dm/pull/1345)
- Support automatically filtering SQL statements like `CREATE/ALTER/DROP EVENT` [#1343](https://github.com/pingcap/dm/pull/1343)
- Support checking whether `server-id` is set for the upstream MySQL/MariaDB instance before the incremental replication task starts [#1315](https://github.com/pingcap/dm/pull/1315)
- Support replicating schemas and tables with `sql` in their names during the full import [#1259](https://github.com/pingcap/dm/pull/1259)

## Bug fixes

- Fix the issue that restarting a task might cause `fail to initial unit Sync of subtask` error [#1274](https://github.com/pingcap/dm/pull/1274)
- Fix the issue that the `pause-task` command might be blocked when it is executed during the full import [#1269](https://github.com/pingcap/dm/pull/1269) [#1277](https://github.com/pingcap/dm/pull/1277)
- Fix the issue that DM fails to create a data source for a MariaDB instance when `enable-gtid: true` is configured [#1344](https://github.com/pingcap/dm/pull/1344)
- Fix the issue that the `query-status` command might be blocked when it is executed [#1293](https://github.com/pingcap/dm/pull/1293)
- Fix the issue that concurrently coordinating multiple DDL statements in the pessimistic shard DDL mode might block the task [#1263](https://github.com/pingcap/dm/pull/1263)
- Fix the issue that running the `pause-task` command might get the meaningless `sql: connection is already closed` error [#1304](https://github.com/pingcap/dm/pull/1304)
- Fix the issue that the full migration fails when the upstream instance does not have the `REPLICATION` privilege [#1326](https://github.com/pingcap/dm/pull/1326)
- Fix the issue that the `route-rules` configuration of a shard merge task does not take effect in the full import when the `SQL_MODE` of the task contains `ANSI_QUOTES` [#1314](https://github.com/pingcap/dm/pull/1314)
- Fix the issue that DM fails to automatically apply the `SQL_MODE` of the upstream database during the incremental replication [#1307](https://github.com/pingcap/dm/pull/1307)
- Fix the issue that DM logs the `fail to parse binlog status_vars` warning when automatically parsing the `SQL_MODE` of the upstream database [#1299](https://github.com/pingcap/dm/pull/1299)
1 change: 1 addition & 0 deletions zh/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
+ [术语表](glossary.md)
+ 版本发布历史
+ v2.0
- [2.0.1](releases/2.0.1.md)
- [2.0 GA](releases/2.0.0-ga.md)
- [2.0.0-rc.2](releases/2.0.0-rc.2.md)
- [2.0.0-rc](releases/2.0.0-rc.md)
Expand Down
35 changes: 35 additions & 0 deletions zh/releases/2.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: DM 2.0.1 Release Notes
---

# DM 2.0.1 Release Notes

发版日期:2020 年 12 月 25 日

DM 版本:2.0.1

## 改进提升

- 增加高可用场景下对 relay log 的支持 [#1353](https://github.com/pingcap/dm/pull/1353)
- relay log 只支持 DM-worker 本地存储。
- 在 DM-worker 节点宕机、网络波动导致节点下线等场景中,新调度的 DM-worker 会重新向上游拉取 binlog。
- 限制 `handle-error` 命令只能处理 DDL 错误以避免误用 [#1303](https://github.com/pingcap/dm/pull/1303)
- 支持 dmctl 同时连接多个 DM-master 节点及自动切换连接节点 [#1349](https://github.com/pingcap/dm/pull/1349)
- 增加 `get-config` 命令用于获取迁移任务和 DM 组件的配置 [#1348](https://github.com/pingcap/dm/pull/1348)
- 支持迁移 `ALTER TABLE ADD COLUMN (xx, xx)` 语句 [#1345](https://github.com/pingcap/dm/pull/1345)
- 支持自动过滤 `CREATE/ALTER/DROP EVENT` 语句 [#1343](https://github.com/pingcap/dm/pull/1343)
- 增加增量复制任务开始前对上游 MySQL/MariaDB 是否设置 `server-id` 的检查 [#1315](https://github.com/pingcap/dm/pull/1315)
- 支持全量导入名字中包含 `sql` 的库和表 [#1259](https://github.com/pingcap/dm/pull/1259)

## Bug 修复

- 修复任务重启时出现错误 `fail to initial unit Sync of subtask` 的问题 [#1274](https://github.com/pingcap/dm/pull/1274)
- 修复全量数据导入时正在执行的 `pause-task` 命令阻塞的问题 [#1269](https://github.com/pingcap/dm/pull/1269) [#1277](https://github.com/pingcap/dm/pull/1277)
- 修复配置 `enable-gtid: true` 时,DM 无法为 MariaDB 实例创建数据源的问题 [#1344](https://github.com/pingcap/dm/pull/1344)
- 修复 `query-status` 命令执行时阻塞的问题 [#1293](https://github.com/pingcap/dm/pull/1293)
- 修复悲观 shard DDL 模式下,并发协调多条 DDL 语句时可能造成阻塞的问题 [#1263](https://github.com/pingcap/dm/pull/1263)
- 修复 `pause-task` 命令执行时可能出现错误 `sql: connection is already closed` 的问题 [#1304](https://github.com/pingcap/dm/pull/1304)
- 修复上游无 `REPLICATION` 权限时全量同步失败的问题 [#1326](https://github.com/pingcap/dm/pull/1326)
- 修复 `SQL_MODE` 包含 `ANSI_QUOTES` 时,合库合表任务 `route-rules` 配置在全量导入时无法生效的问题 [#1314](https://github.com/pingcap/dm/pull/1314)
- 修复增量同步时没有自动应用上游 `SQL_MODE` 的问题 [#1307](https://github.com/pingcap/dm/pull/1307)
- 修复自动解析上游 `SQL_MODE` 时日志出现 WARN `fail to parse binlog status_vars` 的问题 [#1299](https://github.com/pingcap/dm/pull/1299)

0 comments on commit 9a10230

Please sign in to comment.