Skip to content

Commit

Permalink
Upgrade ETCD/GRPC (#3884)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlisi authored Feb 26, 2021
1 parent 90108ce commit 35fbe42
Show file tree
Hide file tree
Showing 614 changed files with 36,002 additions and 21,257 deletions.
12 changes: 4 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require (
github.com/golang/protobuf v1.4.3
github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3
github.com/gorilla/mux v1.7.3
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
github.com/grpc-ecosystem/go-grpc-middleware v1.2.2
github.com/hashicorp/consul/api v1.8.1
github.com/hashicorp/go-cleanhttp v0.5.1
github.com/hashicorp/go-sockaddr v1.0.2
Expand All @@ -55,8 +55,10 @@ require (
github.com/thanos-io/thanos v0.13.1-0.20210226093915-2027fb3098e5
github.com/uber/jaeger-client-go v2.25.0+incompatible
github.com/weaveworks/common v0.0.0-20210112142934-23c8d7fa6120
go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50
go.etcd.io/bbolt v1.3.5
go.etcd.io/etcd v0.5.0-alpha.5.0.20200520232829-54ba9589114f
go.etcd.io/etcd/client/v3 v3.5.0-alpha.0.0.20210225194612-fa82d11a958a
go.etcd.io/etcd/server/v3 v3.5.0-alpha.0.0.20210225194612-fa82d11a958a
go.uber.org/atomic v1.7.0
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
Expand All @@ -81,12 +83,6 @@ replace github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0
// Use fork of gocql that has gokit logs and Prometheus metrics.
replace github.com/gocql/gocql => github.com/grafana/gocql v0.0.0-20200605141915-ba5dc39ece85

// We can't upgrade to grpc 1.30.0 until go.etcd.io/etcd will support it.
replace google.golang.org/grpc => google.golang.org/grpc v1.29.1

// We can't upgrade until grpc upgrade is unblocked.
replace github.com/sercand/kuberesolver => github.com/sercand/kuberesolver v2.4.0+incompatible

// Using a 3rd-party branch for custom dialer - see https://github.com/bradfitz/gomemcache/pull/86
replace github.com/bradfitz/gomemcache => github.com/themihai/gomemcache v0.0.0-20180902122335-24332e2d58ab

Expand Down
124 changes: 123 additions & 1 deletion go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/ring/kv/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"go.etcd.io/etcd/clientv3"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/pkg/transport"

"github.com/cortexproject/cortex/pkg/ring/kv/codec"
Expand Down
4 changes: 2 additions & 2 deletions pkg/ring/kv/etcd/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/cortexproject/cortex/pkg/util/flagext"

"go.etcd.io/etcd/embed"
"go.etcd.io/etcd/etcdserver/api/v3client"
"go.etcd.io/etcd/server/v3/embed"
"go.etcd.io/etcd/server/v3/etcdserver/api/v3client"

"github.com/cortexproject/cortex/pkg/ring/kv/codec"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/dns_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/pkg/errors"
"google.golang.org/grpc/naming"

"github.com/cortexproject/cortex/pkg/util/grpc/naming"
"github.com/cortexproject/cortex/pkg/util/services"
)

Expand All @@ -21,7 +21,7 @@ type DNSNotifications interface {
}

type dnsWatcher struct {
watcher naming.Watcher //nolint:staticcheck //Skipping for now. If you still see this more than likely issue https://github.com/cortexproject/cortex/issues/2015 has not yet been addressed.
watcher naming.Watcher
notifications DNSNotifications
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package naming

// Copied from https://github.com/grpc/grpc-go/tree/v1.29.x/naming.

import (
"context"
"errors"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
/*
*
* Copyright 2014 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

// Package naming defines the naming API and related data structures for gRPC.
//
// This package is deprecated: please use package resolver instead.
package naming

// Copied from https://github.com/grpc/grpc-go/tree/v1.29.x/naming.

// Operation defines the corresponding operations for a name resolution change.
//
// Deprecated: please use package resolver.
type Operation uint8

const (
Expand All @@ -35,8 +15,6 @@ const (

// Update defines a name resolution update. Notice that it is not valid having both
// empty string Addr and nil Metadata in an Update.
//
// Deprecated: please use package resolver.
type Update struct {
// Op indicates the operation of the update.
Op Operation
Expand All @@ -49,15 +27,12 @@ type Update struct {

// Resolver creates a Watcher for a target to track its resolution changes.
//
// Deprecated: please use package resolver.
type Resolver interface {
// Resolve creates a Watcher for target.
Resolve(target string) (Watcher, error)
}

// Watcher watches for the updates on the specified target.
//
// Deprecated: please use package resolver.
type Watcher interface {
// Next blocks until an update or error happens. It may return one or more
// updates. The first call should get the full set of the results. It should
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions vendor/github.com/coreos/pkg/NOTICE

This file was deleted.

39 changes: 0 additions & 39 deletions vendor/github.com/coreos/pkg/capnslog/README.md

This file was deleted.

157 changes: 0 additions & 157 deletions vendor/github.com/coreos/pkg/capnslog/formatters.go

This file was deleted.

Loading

0 comments on commit 35fbe42

Please sign in to comment.