dm icon indicating copy to clipboard operation
dm copied to clipboard

Quality reinforcement (14): fix unstable test cases

Open lance6716 opened this issue 4 years ago • 0 comments

previous one #1997

  • [ ] ha_master https://github.com/pingcap/dm/issues/1762
  • [ ] testElectionSuite.TestFailToStartLeader
[2021-08-10T03:55:24.792Z] election_test.go:91:
[2021-08-10T03:55:24.792Z]     c.Assert(leaderID, check.Equals, cfg1.Name)
[2021-08-10T03:55:24.792Z] ... obtained string = "dm-master-2"
[2021-08-10T03:55:24.792Z] ... expected string = "dm-master-1"
[2021-09-10T02:40:21.660Z] FAIL: election_test.go:34: testElectionSuite.TestFailToStartLeader
[2021-09-10T02:40:21.661Z] 
[2021-09-10T02:40:21.661Z] election_test.go:90:
[2021-09-10T02:40:21.661Z]     c.Assert(err, check.IsNil)
[2021-09-10T02:40:21.661Z] ... value *terror.Error = [code=11108:class=functional:scope=internal:level=medium], Message: fail to get leader ID, RawCause: context deadline exceeded ("[code=11108:class=functional:scope=internal:level=medium], Message: fail to get leader ID, RawCause: context deadline exceeded")
[2021-09-10T03:36:08.379Z] FAIL: election_test.go:34: testElectionSuite.TestFailToStartLeader
[2021-09-10T03:36:08.379Z] 
[2021-09-10T03:36:08.379Z] election_test.go:90:
[2021-09-10T03:36:08.379Z]     c.Assert(err, check.IsNil)
[2021-09-10T03:36:08.379Z] ... value *terror.Error = [code=11108:class=functional:scope=internal:level=medium], Message: fail to get leader ID, RawCause: context deadline exceeded ("[code=11108:class=functional:scope=internal:level=medium], Message: fail to get leader ID, RawCause: context deadline exceeded")
[2021-09-22T09:10:54.222Z] [2021/09/22 17:10:43.944 +08:00] [DEBUG] [baseconn.go:164] ["execute statement"] [task=test] [unit="binlog replication"] [query="INSERT INTO `metrics`.`t1` (`id`,`name`,`dt`,`ts`,`new_col1`) VALUES (?,?,?,?,?)"] [argument="[1004 zmj4 <nil> 2022-05-11 12:01:05 <nil>]"]
[2021-09-22T09:10:54.222Z] [2021/09/22 17:10:43.946 +08:00] [DEBUG] [syncer.go:1382] ["timer Reset"] [task=test] [unit="binlog replication"] [workerJobIdx=4] [tickerInterval=5s] ["current ts"=1632301843]
  • [] testMaster.TestStartTaskWithRemoveMeta jenkins

lance6716 avatar Sep 01 '21 03:09 lance6716