Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: update etcd client to v3.5.2 #423

Merged
merged 3 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 15 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,31 @@ go 1.16
require (
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/gogo/protobuf v1.3.2
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.3.4
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.2-0.20190904063534-ff6b7dc882cf // indirect
github.com/google/btree v1.0.0
github.com/google/uuid v1.1.1
github.com/google/uuid v1.1.2
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
github.com/opentracing/opentracing-go v1.1.0
github.com/pingcap/failpoint v0.0.0-20210316064728-7acb0f0a3dfd
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.18.1 // indirect
github.com/opentracing/opentracing-go v1.2.0
github.com/pingcap/failpoint v0.0.0-20210918120811-547c13e3eb00
github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989
github.com/pingcap/kvproto v0.0.0-20211224055123-d1a140660c39
github.com/pingcap/log v0.0.0-20210625125904-98ed8e2eb1c7
github.com/pingcap/kvproto v0.0.0-20220106070556-3fa8fa04f898
github.com/pingcap/log v0.0.0-20211215031037-e024ba4eb0ee
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.5.1
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/client_model v0.2.0
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/sirupsen/logrus v1.6.0 // indirect
github.com/stretchr/testify v1.7.0
github.com/tikv/pd v1.1.0-beta.0.20211214024235-3c626f28bd32
github.com/tikv/pd/client v0.0.0-20220216070739-26c668271201
github.com/twmb/murmur3 v1.1.3
go.etcd.io/etcd v0.5.0-alpha.5.0.20200824191128-ae9734ed278b
go.uber.org/atomic v1.7.0
go.etcd.io/etcd/api/v3 v3.5.2
go.etcd.io/etcd/client/v3 v3.5.2
go.uber.org/atomic v1.9.0
go.uber.org/goleak v1.1.12
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.16.0
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
go.uber.org/zap v1.20.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/text v0.3.6 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 // indirect
google.golang.org/grpc v1.27.1
gopkg.in/yaml.v2 v2.4.0 // indirect
honnef.co/go/tools v0.2.0 // indirect
google.golang.org/grpc v1.43.0
)
532 changes: 144 additions & 388 deletions go.sum

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions integration_tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ require (
github.com/ninedraft/israce v0.0.3
github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c
github.com/pingcap/failpoint v0.0.0-20210918120811-547c13e3eb00
github.com/pingcap/kvproto v0.0.0-20211224055123-d1a140660c39
github.com/pingcap/tidb v1.1.0-beta.0.20220209090336-37c9dc9e5206
github.com/pingcap/kvproto v0.0.0-20220215045702-d229fcc888c8
github.com/pingcap/tidb v0.0.0
github.com/pingcap/tidb/parser v0.0.0-20220209083136-a850b044c134 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.7.0
github.com/tikv/client-go/v2 v2.0.0
github.com/tikv/pd v1.1.0-beta.0.20220207063535-9268bed87199
github.com/tikv/pd/client v0.0.0-20220216080339-1b8f82378ee7
go.uber.org/goleak v1.1.12
)

replace github.com/tikv/client-go/v2 => ../

// cloud.google.com/go/storage will upgrade grpc to v1.40.0
// we need keep the replacement until go.etcd.io supports the higher version of grpc.
replace google.golang.org/grpc => google.golang.org/grpc v1.29.1
replace github.com/pingcap/tidb => github.com/oh-my-tidb/tidb v1.1.0-beta.0.20220217132606-8ac6b60022d5

replace github.com/pingcap/tidb-tools => github.com/oh-my-tidb/tidb-tools v5.2.2-0.20220217062816-d70a73fd0527+incompatible
601 changes: 233 additions & 368 deletions integration_tests/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func newConnArray(maxSize uint, addr string, security config.Security, idleNotif
func (a *connArray) Init(addr string, security config.Security, idleNotify *uint32, enableBatch bool) error {
a.target = addr

opt := grpc.WithInsecure()
opt := grpc.WithInsecure() //nolint
if len(security.ClusterSSLCA) != 0 {
tlsConfig, err := security.ToTLSConfig()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/locate/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ func createKVHealthClient(ctx context.Context, addr string) (*grpc.ClientConn, h

cfg := config.GetGlobalConfig()

opt := grpc.WithInsecure()
opt := grpc.WithInsecure() //nolint
if len(cfg.Security.ClusterSSLCA) != 0 {
tlsConfig, err := cfg.Security.ToTLSConfig()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/logutil/hex.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"reflect"
"strings"

"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/proto" //nolint
)

// Hex defines a fmt.Stringer for proto.Message.
Expand Down
2 changes: 1 addition & 1 deletion internal/mockstore/mocktikv/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"sync"
"time"

"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/proto" //nolint
"github.com/pingcap/kvproto/pkg/kvrpcpb"
"github.com/pingcap/kvproto/pkg/metapb"
pd "github.com/tikv/pd/client"
Expand Down
2 changes: 1 addition & 1 deletion tikv/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import (
"github.com/tikv/client-go/v2/txnkv/txnsnapshot"
"github.com/tikv/client-go/v2/util"
pd "github.com/tikv/pd/client"
"go.etcd.io/etcd/clientv3"
clientv3 "go.etcd.io/etcd/client/v3"
atomicutil "go.uber.org/atomic"
"go.uber.org/zap"
"google.golang.org/grpc"
Expand Down
4 changes: 2 additions & 2 deletions tikv/safepoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import (

"github.com/pkg/errors"
"github.com/tikv/client-go/v2/internal/logutil"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/mvcc/mvccpb"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
)

Expand Down