From 3b7e55dd49e7172f4c97b6ad63d220a55a896760 Mon Sep 17 00:00:00 2001 From: djshow832 <873581766@qq.com> Date: Thu, 9 Dec 2021 17:25:01 +0800 Subject: [PATCH] fix comments --- ddl/db_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddl/db_test.go b/ddl/db_test.go index b570529429b1d..deecc27b8974b 100644 --- a/ddl/db_test.go +++ b/ddl/db_test.go @@ -7307,7 +7307,7 @@ func (s *testSerialDBSuite) TestCancelJobWriteConflict(c *C) { d.(ddl.DDLForTest).SetHook(hook) defer d.(ddl.DDLForTest).SetHook(originalHook) - // Cancelling will be retried but it still fails, and adding index succeeds. + // Test when cancelling cannot be retried and adding index succeeds. hook.OnJobRunBeforeExported = func(job *model.Job) { if job.Type == model.ActionAddIndex && job.State == model.JobStateRunning && job.SchemaState == model.StateWriteReorganization { stmt := fmt.Sprintf("admin cancel ddl jobs %d", job.ID) @@ -7319,7 +7319,7 @@ func (s *testSerialDBSuite) TestCancelJobWriteConflict(c *C) { tk.MustExec("alter table t add index (id)") c.Assert(cancelErr.Error(), Equals, "mock commit error") - // Cancelling will be retried only once and it succeeds at the end. + // Test when cancelling is retried only once and adding index is cancelled in the end. var jobID int64 hook.OnJobRunBeforeExported = func(job *model.Job) { if job.Type == model.ActionAddIndex && job.State == model.JobStateRunning && job.SchemaState == model.StateWriteReorganization {