diff --git a/.github/workflows/upgrade-via-tiup.yml b/.github/workflows/upgrade-via-tiup.yml index e4e8869b89..198b6f5834 100644 --- a/.github/workflows/upgrade-via-tiup.yml +++ b/.github/workflows/upgrade-via-tiup.yml @@ -67,7 +67,7 @@ jobs: strategy: fail-fast: false matrix: - previous_v2: ["v2.0.0", "v2.0.1", "v2.0.2"] + previous_v2: ["v2.0.0", "v2.0.1"] steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 40958599c3..a32fe6eb7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ All notable changes to this project will be documented in this file. +## [2.0.3] 2021-05-10 + +### Improvements + +- Support deleting residual DDL locks using the command `unlock-ddl-lock` after the migration task is stopped [#1612](https://github.com/pingcap/dm/pull/1612) +- Support limiting the number of errors and warnings that DM reports during the precheck process [#1621](https://github.com/pingcap/dm/pull/1621) +- Optimize the behavior of the command `query-status` to get the status of upstream binlogs [#1630](https://github.com/pingcap/dm/pull/1630) +- Optimize the format of sharded tables’ migration status output by the command `query-status` in the pessimistic mode [#1650](https://github.com/pingcap/dm/pull/1650) +- Print help message first when dmtcl processes commands with the `--help` input [#1637](https://github.com/pingcap/dm/pull/1637) +- Automatically remove the related information from monitoring panels after a DDL lock is deleted [#1631](https://github.com/pingcap/dm/pull/1631) +- Automatically remove the related task status from monitoring panels after a task is stopped or completed [#1614](https://github.com/pingcap/dm/pull/1614) + +### Bug fixes + +- Fix the issue that DM-master becomes out of memory after DM is updated to v2.0.2 in the process of shard DDL coordination using the optimistic mode [#1643](https://github.com/pingcap/dm/pull/1643) [#1649](https://github.com/pingcap/dm/pull/1649) +- Fix the issue that the source binding information is lost when DM is started for the first time after updated to v2.0.2 [#1649](https://github.com/pingcap/dm/pull/1649) +- Fix the issue that the flag in the command `operate-source show -s` does not take effect [#1587](https://github.com/pingcap/dm/pull/1587) +- Fix the issue that the command `operate-source stop ` fails because DM cannot connect to the source [#1587](https://github.com/pingcap/dm/pull/1587) +- Fix the finer-grained issue that some migration errors might be wrongly ignored [#1599](https://github.com/pingcap/dm/pull/1599) +- Fix the issue that the migration is interrupted when DM filters online DDL statements according to binlog event filtering rules that are configured [#1668](https://github.com/pingcap/dm/pull/1668) + +### Known issues + +[GitHub issues](https://github.com/pingcap/dm/issues?q=is%3Aissue+label%3Aaffected-v2.0.3) + ## [2.0.2] 2021-04-09 ### Improvements @@ -42,7 +67,7 @@ All notable changes to this project will be documented in this file. ### Known issues -[GitHub issues](https://github.com/pingcap/dm/issues?q=is%3Aissue+is%3Aopen+label%3Aaffected-v2.0.2) +[GitHub issues](https://github.com/pingcap/dm/issues?q=is%3Aissue+label%3Aaffected-v2.0.2) ## [2.0.1] 2020-12-25 diff --git a/relay/meta.go b/relay/meta.go index c9a1a3844d..0187eb5333 100644 --- a/relay/meta.go +++ b/relay/meta.go @@ -303,6 +303,7 @@ func (lm *LocalMeta) AddDir(serverUUID string, newPos *mysql.Position, newGTID g } // update UUID index file + // nolint:gocritic uuids := append(lm.uuids, newUUID) err = lm.updateIndexFile(uuids) if err != nil { diff --git a/syncer/syncer_test.go b/syncer/syncer_test.go index d2101ffe9a..a6276b5232 100644 --- a/syncer/syncer_test.go +++ b/syncer/syncer_test.go @@ -694,6 +694,7 @@ func (s *testSyncerSuite) TestColumnMapping(c *C) { mapping, err := cm.NewMapping(false, rules) c.Assert(err, IsNil) + // nolint:gocritic allEvents := append(createEvents, dmlEvents...) allEvents = append(allEvents, dropEvents...) dmlIndex := 0 @@ -1314,6 +1315,7 @@ func (s *testSyncerSuite) TestExitSafeModeByConfig(c *C) { } generatedEvents2 := s.generateEvents(events2, c) + // nolint:gocritic generatedEvents := append(generatedEvents1, generatedEvents2...) mockStreamerProducer := &MockStreamProducer{generatedEvents}