Граф коммитов

58 Коммитов

Автор SHA1 Сообщение Дата
Doug Fawley ad51f572fd
protoc-gen-go-grpc: add requirement of embedding UnimplementedServer in services (#3657) 2020-06-04 10:56:13 -07:00
Damien Neil f818fd2a02
all: regenerate .pb.go files using cmd/protoc-gen-go-grpc (#3646)
Change regenerate.sh to use cmd/protoc-gen-go-grpc and rerun it.
This splits the gRPC service definitions into separate files, but
otherwise has no changes.
2020-05-28 13:52:49 -07:00
Damien Neil 15653fec60
all: refactor .pb.go generation (#3451)
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.

Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.

Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
Doug Fawley b88d2d7465
protobuf: update protoc-gen-go version and generated code (#3345) 2020-01-30 10:23:21 -08:00
Doug Fawley dc49de8acd
balancer: add V2Picker, ClientConn.UpdateState, SubConnState.ConnectionError (#3186)
Also implement V2 versions of base.*, xds, pickfirst, grpclb, and round robin balancers.
2019-11-21 10:27:29 -08:00
Ning Xie a7c1650ef7 fix typos (#3111) 2019-10-22 10:46:34 -07:00
Easwar Swaminathan 31911ed09e
client: add WithConnectParams to configure connection backoff and timeout (#2960)
* Implement missing pieces for connection backoff.

Spec can be found here:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md

Summary of changes:
* Added a new type (marked experimental), ConnectParams, which contains
  the knobs defined in the spec (except for minConnectTimeout).
* Added a new API (marked experimental), WithConnectParams() to return a
  DialOption to dial with the provided parameters.
* Added new fields to the implementation of the exponential backoff in
  internal/backoff which mirror the ones in ConnectParams.
* Marked existing APIs WithBackoffMaxDelay() and WithBackoffConfig() as
  deprecated.
* Added a default exponential backoff implementation, for easy use of
  internal callers.

Added a new backoff package which defines the backoff configuration
options, and is used by both the grpc package and the internal/backoff
package. This allows us to have all backoff related options in a
separate package.
2019-10-03 16:47:13 -07:00
KimMachineGun 7aa94b7eef health: Use sync.RWMutex instead of sync.Mutex (#3058) 2019-10-01 13:59:53 -07:00
Doug Fawley e2cfd1c28f
internal: update proto library version (#3025)
Also, two fixes:

- Fix long-standing `.travis.yml` bug where `VET_SKIP_PROTO` was not `export`ed (so not seen by `vet.sh`).
- Update `vet.sh` to work with new `goimports -l` that does not print a `:` after filenames.
2019-09-17 13:49:26 -07:00
Menghan Li 5caf962939
client: addrConn NewStream and health check cleanup (#2848) 2019-06-26 11:15:17 -07:00
Menghan Li 7b14136291
health: resume health server (#2528) 2018-12-26 10:44:53 -08:00
Menghan Li aad0edeefb
health: shutdown server to set NOT_SERVING and disallow future updates (#2513) 2018-12-10 14:17:43 -08:00
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Menghan Li c94cef3891
internal: split proto package import in health package (#2442) 2018-11-06 09:59:22 -08:00
Can Guler c86bc5cd5f
health: Checks if the service's serving status has changed before sending an update (#2424) 2018-10-31 15:45:18 -07:00
Can Guler ec76f14f6f
health: Merges healthcheck package to health package. (#2417) 2018-10-30 16:08:45 -07:00
Can Guler 23d111fa0d
Health server watch method (#2365)
Implements the Watch method of Health server and it's end2end tests.
2018-10-16 14:39:16 -07:00
Ning Xie c1fc9faff6 refactor variable name (#2369)
Refactor `status` variable name to `servingStatus` to avoid the complaint from Goland IDE about name conflict from the `status` package.
2018-10-11 10:14:31 -07:00
Menghan Li 9907ae0e57
health: update pb.go and add watch method (#2263)
This PR fixes the failed build. The new `watch` method is not implemented.
2018-08-15 15:32:29 -07:00
Menghan Li 39a411827d
internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
Menghan Li f669235193
internal: update proto generated code (#2093) 2018-05-21 09:59:26 -07:00
Carl Mastrangelo 3b7feb1847 health: generate health proto from grpc-proto (#2081) 2018-05-17 11:11:47 -07:00
lyuxuan a36eb4675a
regenerate *.pb.go files due to proto-gen-go update (#2070) 2018-05-11 18:57:54 -07:00
Carl Mastrangelo 7c204fd174 health: set health proto canonical path (#2038) 2018-05-02 14:02:14 -07:00
Menghan Li e538e04cad proto: update generated code (#2039) 2018-05-01 12:53:20 -07:00
Gyu-Ho Lee 865013bc17 *: replace deprecated grpc.Errorf calls with status.Errorf (#1651) 2017-11-06 10:24:20 -08:00
dfawley 25b4a426b4 go-generate pb.go files and check in Travis to make sure they don't change (#1426) 2017-08-17 16:00:51 -07:00
田欧 3c33c26290 add license for some proto files (#1322) 2017-06-27 09:54:34 -07:00
田欧 a94a7ac054 add license for some files (#1296) 2017-06-12 18:10:06 -07:00
Mahak Mukhi 883bfc7bc8 pb.go file update 2016-10-28 12:37:56 -07:00
Mak Mukhi 727a60e4d1 update server reflection code to comply with the change to the grpc generator 2016-10-21 18:06:55 -07:00
Tamir Duberstein 220b464e81
*: golint 2016-07-27 23:38:59 -04:00
Menghan Li abe672d5ed Update generated files 2016-06-10 14:20:04 -07:00
Menghan Li 0da018f37e Update generated files 2016-06-09 15:02:17 -07:00
iamqizhao 61e92eacc3 Phase 1 to add the server interceptor 2016-04-18 16:18:34 -07:00
iamqizhao 3839435526 change health check package name 2016-02-18 13:10:06 -08:00
Tamir Duberstein accbf4c185 `make proto` 2016-02-04 17:35:04 -05:00
iamqizhao a15e3b9562 decodeFunc -> dec 2015-10-01 16:26:00 -07:00
iamqizhao 1d81cf4f22 fix all the generated code 2015-10-01 14:35:07 -07:00
iamqizhao 67646dc278 update health check to the latest version 2015-09-17 14:36:11 -07:00
iamqizhao 29948ca05c update health.proto 2015-09-16 22:16:10 -07:00
yangzhouhan 80bd4c598d add a comment 2015-08-13 18:32:39 -07:00
yangzhouhan e1eaac2884 add empty string check 2015-08-13 18:15:11 -07:00
yangzhouhan 5a78be3dbb update healthCheck service 2015-08-13 15:16:59 -07:00
yangzhouhan e6a0e51ad1 modify the status map type 2015-07-23 18:01:20 -07:00
yangzhouhan e9dfeb65b7 fix indent 2015-07-23 16:52:40 -07:00
yangzhouhan ec53eba4e7 add derfer to unlock 2015-07-23 16:10:35 -07:00
yangzhouhan 9d4ac0cac5 fix mutex problems and merge multiple servingstatus to one single test 2015-07-23 14:45:27 -07:00
yangzhouhan ee67f58505 fix the indent 2015-07-23 11:01:18 -07:00