From b260156e9fa7faa80e2b9aa494aaea7108d516a0 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 11:27:28 +0800 Subject: [PATCH 1/9] en, zh: add release notes for v1.2.0 --- en/TOC.md | 1 + en/releases/release-1.2.0.md | 26 ++++++++++++++++++++++++++ zh/TOC.md | 1 + zh/releases/release-1.2.0.md | 26 ++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 en/releases/release-1.2.0.md create mode 100644 zh/releases/release-1.2.0.md diff --git a/en/TOC.md b/en/TOC.md index 8508979012..af0b5f770f 100644 --- a/en/TOC.md +++ b/en/TOC.md @@ -103,6 +103,7 @@ + [TiDB Operator Roadmap](roadmap.md) + Release Notes + v1.2 + - [1.2.0](releases/release-1.2.0.md) - [1.2.0-rc.2](releases/release-1.2.0-rc.2.md) - [1.2.0-rc.1](releases/release-1.2.0-rc.1.md) - [1.2.0-beta.2](releases/release-1.2.0-beta.2.md) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md new file mode 100644 index 0000000000..7bbabec7e5 --- /dev/null +++ b/en/releases/release-1.2.0.md @@ -0,0 +1,26 @@ +--- +title: TiDB Operator 1.2.0 Release Notes +--- + +# TiDB Operator 1.2.0 Release Notes + +Release date: July 29, 2021 + +TiDB Operator version: 1.2.0 + +## Rolling Update Changes + +- Upgrading TiDB Operator will cause the recreation of the TidbMonitor Pod due to [#4085](https://github.com/pingcap/tidb-operator/pull/4085) + +## New features + +- Support setting `retentionTime` for Prometheus with more fine-grained duration than `reserveDays`, and will only use `retentionTime` if both configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) +- Support setting `priorityClassName` of `Backup` Job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) + +## Improvements + +- Set the default region leader eviction timeout of TiKV to 1500 min ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) + +## Bug fixes + +- Fix the issue that may parse URL of `Prometheus.RemoteWrite` in `TiDBMonitor` failed ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) diff --git a/zh/TOC.md b/zh/TOC.md index 7216d02b42..a93e9abcc5 100644 --- a/zh/TOC.md +++ b/zh/TOC.md @@ -105,6 +105,7 @@ + [TiDB Operator Roadmap](roadmap.md) + 版本发布历史 + v1.2 + - [1.2.0](releases/release-1.2.0.md) - [1.2.0-rc.2](releases/release-1.2.0-rc.2.md) - [1.2.0-rc.1](releases/release-1.2.0-rc.1.md) - [1.2.0-beta.2](releases/release-1.2.0-beta.2.md) diff --git a/zh/releases/release-1.2.0.md b/zh/releases/release-1.2.0.md new file mode 100644 index 0000000000..367249ef62 --- /dev/null +++ b/zh/releases/release-1.2.0.md @@ -0,0 +1,26 @@ +--- +title: TiDB Operator 1.2.0 Release Notes +--- + +# TiDB Operator 1.2.0 Release Notes + +发布日期:2021 年 7 月 29 日 + +TiDB Operator 版本:1.2.0 + +## 滚动升级改动 + +- 由于 [#4085](https://github.com/pingcap/tidb-operator/pull/4085) 的改动,升级 TiDB Operator 会导致 TidbMonitor Pod 删除重建 + +## 新功能 + +- 支持为 `TiDBMonitor` 的 `Prometheus` 设置比 `reserveDays` 更细粒度的 `retentionTime`,两者都配置的情况下仅使用 `retentionTime` ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) +- 支持设置 `Backup` Job 的 `priorityClassName` ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) + +## 优化提升 + +- 将 TiKV 的 Region Leader 驱逐超时时间默认值调整为 1500 分钟 ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) + +## Bug 修复 + +- 修复可能解析 `TiDBMonitor` 定义中 `Prometheus.RemoteWrite` 的 URL 失败的问题 ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) From b7f289743fe6de56aaf46a4390b64c530f5dacb6 Mon Sep 17 00:00:00 2001 From: Shiori Date: Wed, 28 Jul 2021 22:36:35 -0500 Subject: [PATCH 2/9] Update zh/releases/release-1.2.0.md Co-authored-by: Xuecheng Zhang --- zh/releases/release-1.2.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/releases/release-1.2.0.md b/zh/releases/release-1.2.0.md index 367249ef62..4297967189 100644 --- a/zh/releases/release-1.2.0.md +++ b/zh/releases/release-1.2.0.md @@ -23,4 +23,4 @@ TiDB Operator 版本:1.2.0 ## Bug 修复 -- 修复可能解析 `TiDBMonitor` 定义中 `Prometheus.RemoteWrite` 的 URL 失败的问题 ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) +- 修复解析 `TiDBMonitor` 定义中 `Prometheus.RemoteWrite` 的 URL 可能失败的问题 ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) From 5179a742f3f177eedf4454e006bfcadec1748f01 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 01:13:57 -0500 Subject: [PATCH 3/9] Update en/TOC.md Co-authored-by: Grace Cai --- en/TOC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/TOC.md b/en/TOC.md index af0b5f770f..f74bff2cc5 100644 --- a/en/TOC.md +++ b/en/TOC.md @@ -103,7 +103,7 @@ + [TiDB Operator Roadmap](roadmap.md) + Release Notes + v1.2 - - [1.2.0](releases/release-1.2.0.md) + - [1.2 GA](releases/release-1.2.0.md) - [1.2.0-rc.2](releases/release-1.2.0-rc.2.md) - [1.2.0-rc.1](releases/release-1.2.0-rc.1.md) - [1.2.0-beta.2](releases/release-1.2.0-beta.2.md) From 0b52eb4f3faf0b6e8a18f4c8e385ccfc281ed7a2 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 14:22:34 +0800 Subject: [PATCH 4/9] update release name --- zh/TOC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/TOC.md b/zh/TOC.md index a93e9abcc5..dfffc7c3d6 100644 --- a/zh/TOC.md +++ b/zh/TOC.md @@ -105,7 +105,7 @@ + [TiDB Operator Roadmap](roadmap.md) + 版本发布历史 + v1.2 - - [1.2.0](releases/release-1.2.0.md) + - [1.2 GA](releases/release-1.2.0.md) - [1.2.0-rc.2](releases/release-1.2.0-rc.2.md) - [1.2.0-rc.1](releases/release-1.2.0-rc.1.md) - [1.2.0-beta.2](releases/release-1.2.0-beta.2.md) From b4415e2feb708779b4cff2c268e3d3862b893751 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 01:24:10 -0500 Subject: [PATCH 5/9] Apply suggestions from code review Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> --- en/releases/release-1.2.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md index 7bbabec7e5..9f03c7bc9b 100644 --- a/en/releases/release-1.2.0.md +++ b/en/releases/release-1.2.0.md @@ -23,4 +23,4 @@ TiDB Operator version: 1.2.0 ## Bug fixes -- Fix the issue that may parse URL of `Prometheus.RemoteWrite` in `TiDBMonitor` failed ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) +- Fix the issue that it may fail to parse the URL in `Prometheus.RemoteWrite` in `TiDBMonitor` ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) From 7034bca968822ba8e0f21d4bb373dc610f629c38 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 05:07:13 -0500 Subject: [PATCH 6/9] Apply suggestions from code review Co-authored-by: Grace Cai --- en/releases/release-1.2.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md index 9f03c7bc9b..2c9eba90a8 100644 --- a/en/releases/release-1.2.0.md +++ b/en/releases/release-1.2.0.md @@ -8,13 +8,13 @@ Release date: July 29, 2021 TiDB Operator version: 1.2.0 -## Rolling Update Changes +## Rolling update changes - Upgrading TiDB Operator will cause the recreation of the TidbMonitor Pod due to [#4085](https://github.com/pingcap/tidb-operator/pull/4085) ## New features -- Support setting `retentionTime` for Prometheus with more fine-grained duration than `reserveDays`, and will only use `retentionTime` if both configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) +- Support setting Prometheus `retentionTime`, which is more fine-grained than `reserveDays`, and only use `retentionTime` if both are configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) - Support setting `priorityClassName` of `Backup` Job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) ## Improvements From 7a11f492e9dcb3160c788a628325a0aafb782300 Mon Sep 17 00:00:00 2001 From: Shiori Date: Thu, 29 Jul 2021 07:11:43 -0500 Subject: [PATCH 7/9] Apply suggestions from code review Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> --- en/releases/release-1.2.0.md | 4 ++-- zh/releases/release-1.2.0.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md index 2c9eba90a8..97b3fd1410 100644 --- a/en/releases/release-1.2.0.md +++ b/en/releases/release-1.2.0.md @@ -15,7 +15,7 @@ TiDB Operator version: 1.2.0 ## New features - Support setting Prometheus `retentionTime`, which is more fine-grained than `reserveDays`, and only use `retentionTime` if both are configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) -- Support setting `priorityClassName` of `Backup` Job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) +- Support setting `priorityClassName` in the `Backup` CR to specify the priority of the backup Job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) ## Improvements @@ -23,4 +23,4 @@ TiDB Operator version: 1.2.0 ## Bug fixes -- Fix the issue that it may fail to parse the URL in `Prometheus.RemoteWrite` in `TiDBMonitor` ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) +- Fix the issue that the URL in `Prometheus.RemoteWrite` may be parsed incorrectly in `TiDBMonitor` ([#4087](https://github.com/pingcap/tidb-operator/pull/4087), [@better0332](https://github.com/better0332)) diff --git a/zh/releases/release-1.2.0.md b/zh/releases/release-1.2.0.md index 4297967189..3690e24887 100644 --- a/zh/releases/release-1.2.0.md +++ b/zh/releases/release-1.2.0.md @@ -15,7 +15,7 @@ TiDB Operator 版本:1.2.0 ## 新功能 - 支持为 `TiDBMonitor` 的 `Prometheus` 设置比 `reserveDays` 更细粒度的 `retentionTime`,两者都配置的情况下仅使用 `retentionTime` ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) -- 支持设置 `Backup` Job 的 `priorityClassName` ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) +- 支持 `Backup` CR 通过 `priorityClassName` 设置备份 Job 优先级 ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) ## 优化提升 From 055379a5b06bc85e9ed8ffab43321352f853ab52 Mon Sep 17 00:00:00 2001 From: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> Date: Thu, 29 Jul 2021 20:15:45 +0800 Subject: [PATCH 8/9] Apply suggestions from code review Co-authored-by: Grace Cai --- en/releases/release-1.2.0.md | 2 +- zh/releases/release-1.2.0.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md index 97b3fd1410..35b0aded60 100644 --- a/en/releases/release-1.2.0.md +++ b/en/releases/release-1.2.0.md @@ -19,7 +19,7 @@ TiDB Operator version: 1.2.0 ## Improvements -- Set the default region leader eviction timeout of TiKV to 1500 min ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) +- Changes the default region leader eviction timeout of TiKV to 1500 minutes to prevent the Pod from being deleted when the region leaders are not transferred completely to the other stores which will cause data corruption([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) ## Bug fixes diff --git a/zh/releases/release-1.2.0.md b/zh/releases/release-1.2.0.md index 3690e24887..157fdd82d7 100644 --- a/zh/releases/release-1.2.0.md +++ b/zh/releases/release-1.2.0.md @@ -19,7 +19,7 @@ TiDB Operator 版本:1.2.0 ## 优化提升 -- 将 TiKV 的 Region Leader 驱逐超时时间默认值调整为 1500 分钟 ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) +- 将升级过程中驱逐 TiKV 的 Region Leader 超时的默认值调整为 1500 分钟,以避免 Region Leader 没有驱逐完成而停止 Pod 导致数据损坏 ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) ## Bug 修复 From fca860989237f32e29b88e8116ddd7287360c808 Mon Sep 17 00:00:00 2001 From: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> Date: Thu, 29 Jul 2021 20:42:05 +0800 Subject: [PATCH 9/9] Apply suggestions from code review Co-authored-by: Grace Cai --- en/releases/release-1.2.0.md | 6 +++--- zh/releases/release-1.2.0.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/releases/release-1.2.0.md b/en/releases/release-1.2.0.md index 35b0aded60..5cfd962e06 100644 --- a/en/releases/release-1.2.0.md +++ b/en/releases/release-1.2.0.md @@ -14,12 +14,12 @@ TiDB Operator version: 1.2.0 ## New features -- Support setting Prometheus `retentionTime`, which is more fine-grained than `reserveDays`, and only use `retentionTime` if both are configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) -- Support setting `priorityClassName` in the `Backup` CR to specify the priority of the backup Job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) +- Support setting Prometheus `retentionTime`, which is more fine-grained than `reserveDays`, and only `retentionTime` takes effect if both are configured ([#4085](https://github.com/pingcap/tidb-operator/pull/4085), [@better0332](https://github.com/better0332)) +- Support setting `priorityClassName` in the `Backup` CR to specify the priority of the backup job ([#4078](https://github.com/pingcap/tidb-operator/pull/4078), [@mikechengwei](https://github.com/mikechengwei)) ## Improvements -- Changes the default region leader eviction timeout of TiKV to 1500 minutes to prevent the Pod from being deleted when the region leaders are not transferred completely to the other stores which will cause data corruption([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) +- Changes the default Region leader eviction timeout of TiKV to 1500 minutes. The change prevents the Pod from being deleted when the Region leaders are not transferred completely to the other stores, which will cause data corruption ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) ## Bug fixes diff --git a/zh/releases/release-1.2.0.md b/zh/releases/release-1.2.0.md index 157fdd82d7..6efb82a3b9 100644 --- a/zh/releases/release-1.2.0.md +++ b/zh/releases/release-1.2.0.md @@ -19,7 +19,7 @@ TiDB Operator 版本:1.2.0 ## 优化提升 -- 将升级过程中驱逐 TiKV 的 Region Leader 超时的默认值调整为 1500 分钟,以避免 Region Leader 没有驱逐完成而停止 Pod 导致数据损坏 ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) +- 将升级过程中驱逐 TiKV 的 Region Leader 超时的默认值调整为 1500 分钟,避免驱逐尚未完成时停止 Pod 导致数据损坏 ([#4071](https://github.com/pingcap/tidb-operator/pull/4071), [@KanShiori](https://github.com/KanShiori)) ## Bug 修复