Skip to content

Commit

Permalink
Merge branch 'release-5.2' into cherry-pick-3851-to-release-5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen authored Apr 13, 2022
2 parents 65635ff + d593b56 commit 0ce7ad9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/etcd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ func (c *Client) Get(ctx context.Context, key string, opts ...clientv3.OpOption)

// Delete delegates request to clientv3.KV.Delete
func (c *Client) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (resp *clientv3.DeleteResponse, err error) {
if metric, ok := c.metrics[EtcdTxn]; ok {
if metric, ok := c.metrics[EtcdDel]; ok {
metric.Inc()
}
// We don't retry on delete operatoin. It's dangerous.
// We don't retry on delete operation. It's dangerous.
return c.cli.Delete(ctx, key, opts...)
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/orchestrator/etcd_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (
)

const (
// etcdWorkerLogsWarnDuration when EtcdWorker commits a txn to etcd or ticks
// it reactor takes more than etcdWorkerLogsWarnDuration, it will print a log
// When EtcdWorker commits a txn to etcd or ticks its reactor
// takes more than etcdWorkerLogsWarnDuration, it will print a log
etcdWorkerLogsWarnDuration = 1 * time.Second
deletionCounterKey = "/meta/ticdc-delete-etcd-key-count"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package pipeline

import "github.com/pingcap/tiflow/pkg/context"

// NodeContext adds two functions from `coutext.Context` and created by pipeline
// NodeContext adds two functions to `context.Context` and is created by pipeline
type NodeContext interface {
context.Context

Expand Down

0 comments on commit 0ce7ad9

Please sign in to comment.