Arvind Bright
8320224ff0
.*: revive from unused_parameters ( #7577 )
2024-08-30 10:41:30 -07:00
Zach Reyes
1db6590e40
grpc: Move Pick First Balancer to separate package ( #7255 )
2024-05-22 16:26:02 -04:00
Elisha Silas
09e6fddbcd
Update docs and examples and tests to use NewClient instead of Dial ( #7068 )
...
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Co-authored-by: Doug Fawley <dfawley@google.com>
2024-04-19 10:55:23 -07:00
Doug Fawley
e3f1514cdb
Reapply "status: fix/improve status handling ( #6662 )" ( #6673 ) ( #6688 )
2023-10-05 08:20:01 -07:00
Doug Fawley
9e1fc3e9c0
Revert "status: fix/improve status handling ( #6662 )" ( #6673 )
2023-10-02 12:52:25 -07:00
Doug Fawley
0772ed7355
status: fix/improve status handling ( #6662 )
2023-10-02 09:54:42 -07:00
Doug Fawley
fbff2abb0f
*: update `interface{}` to `any` and `go.mod` version to `go 1.19` ( #6544 )
2023-08-14 09:04:46 -07:00
Doug Fawley
8f51ca8f58
tests: stop using UpdateSubConnState ( #6527 )
2023-08-09 13:56:05 -07:00
Easwar Swaminathan
67a8e73f82
multiple/test: use stub balancer instead of defining wrapped balancers ( #6514 )
2023-08-09 09:34:59 -07:00
Doug Fawley
4832debdaa
test: clean up deadlines set in tests ( #6506 )
2023-08-08 09:23:15 -07:00
Doug Fawley
6c0c69efd5
all: replace RemoveSubConn with Shutdown as much as possible ( #6505 )
2023-08-04 10:19:51 -07:00
Doug Fawley
7aceafcc52
balancer: add SubConn.Shutdown; deprecate Balancer.RemoveSubConn ( #6493 )
2023-08-04 08:10:48 -07:00
Doug Fawley
94df716d94
resolver: State: add Endpoints and deprecate Addresses ( #6471 )
2023-07-31 09:42:27 -07:00
Doug Fawley
02946a3f37
resolver: remove deprecated AddressType ( #6451 )
2023-07-17 13:29:21 -07:00
Zach Reyes
1536887cc6
interop/xds: Add Custom LB needed for interop test ( #6262 )
2023-05-11 12:29:32 -04:00
Doug Fawley
417cf84607
test: deflake TestBalancerProducerHonorsContext ( #6257 )
2023-05-05 11:08:42 -07:00
Doug Fawley
ed3ceba605
balancer: make producer RPCs block until the SubConn is READY ( #6236 )
2023-05-02 10:09:23 -07:00
Easwar Swaminathan
bfb57b8b49
testing: delete internal copy of test service proto, and use canonical one ( #6164 )
2023-04-05 17:12:57 -07:00
Easwar Swaminathan
68b388b26f
balancer: support injection of per-call metadata from LB policies ( #5853 )
2022-12-20 15:13:02 -08:00
Easwar Swaminathan
b6873c006d
grpc: move to `TransientFailure` in `pick_first` LB policy when all addresses are removed ( #5274 )
2022-03-29 15:06:28 -07:00
Easwar Swaminathan
eead9a824c
grpc: delete deprecated API WithBalancerName() ( #5232 )
2022-03-10 13:15:11 -08:00
赵延
c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials ( #5177 )
2022-02-09 11:17:46 -08:00
Easwar Swaminathan
82d8af8bf0
balancer: add Authority field to balancer.BuildOptions ( #4969 )
2021-11-11 10:59:18 -08:00
Ryan Leung
14ebd917f2
lint: fix some unused parameter issues ( #4956 )
2021-11-09 11:18:21 -08:00
Easwar Swaminathan
45a623cbef
test: use non blocking dials in end2end_test ( #4687 )
2021-08-24 10:02:55 -07:00
Doug Fawley
8ab16ef276
balancer: add ExitIdle optional interface ( #4673 )
2021-08-18 15:04:35 -07:00
Zach Reyes
1c598a11a4
Move exponential backoff to DNS resolver from resolver.ClientConn ( #4270 )
2021-04-20 13:20:09 -04:00
Doug Fawley
0d6a24f68a
test: move stubServer to separate package in internal ( #4081 )
2020-12-04 15:56:07 -08:00
Menghan Li
78864797b8
balancer: set RPC metadata in address attributes, instead of Metadata field ( #4041 )
...
This metadata will be sent with all RPCs on the created SubConn
2020-11-18 17:12:51 -08:00
Doug Fawley
02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration ( #3911 )
2020-09-29 15:17:06 -07:00
Doug Fawley
ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService ( #3876 )
2020-09-16 10:15:56 -07:00
Doug Fawley
15157e2664
test: remove funcServer and some uses of NewTestServiceService ( #3867 )
2020-09-09 13:23:46 -07:00
Doug Fawley
44d73dff99
cmd/protoc-gen-go-grpc: rework service registration ( #3828 )
2020-08-25 09:28:01 -07:00
Menghan Li
8beeedb8b1
internal: clean up all usages of grpclog, and replace with component ( #3719 )
2020-08-06 13:19:17 -07:00
Easwar Swaminathan
fd393c8989
testdata: Update testdata certs. ( #3786 )
...
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
Menghan Li
266c7b6f82
xdsrouting: add fake headers ( #3748 )
2020-07-20 13:40:03 -07:00
Zou Nengren
4e63bcab52
test: replace manual.GenerateAndRegisterManualResolver with grpc.WithResolvers ( #3700 )
2020-06-23 09:49:44 -07:00
Doug Fawley
4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API ( #3431 )
2020-04-28 14:52:49 -07:00
Easwar Swaminathan
6a3c03883d
Pass address attributes from balancer to creds handshaker. ( #3548 )
2020-04-23 11:03:42 -07:00
Doug Fawley
c35a580b0c
Revert "balancer: move Balancer and Picker to V2; delete legacy… ( #3315 )
...
This reverts commit 336cf8d761 .
2020-01-13 13:12:55 -08:00
Doug Fawley
336cf8d761
balancer: move Balancer and Picker to V2; delete legacy API ( #3301 )
2020-01-10 13:44:48 -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
Menghan Li
f7de2c8d62
balancer: filter out grpclb addresses if balancer is not grpclb ( #2907 )
2019-07-17 15:08:56 -07:00
Easwar Swaminathan
a5396fd45c
Remove call to proto.Clone() in http2Server.WriteStatus. ( #2842 )
...
* Expose a method from the internal package to get to the raw
StatusProto wrapped by the status error, and use it from
http2Server.WriteStatus().
* Add a helper method in internal/testutils to compare two status errors
and update test code to use that instead of reflect.DeepEqual()
2019-06-10 15:03:12 -07:00
Menghan Li
f34abd9513
xds: add orca generated file, and move orca to xds folder ( #2804 )
2019-05-24 12:35:57 -07:00
Menghan Li
d389f9fac6
balancer: add server loads from RPC trailers to DoneInfo ( #2641 )
2019-04-02 11:15:36 -07:00
Menghan Li
495133b619
internal: fix pickoptions in balancer_test ( #2698 )
...
The same test was changed by two PRs, merge didn't catch the conflict
2019-03-19 13:26:46 -07:00
Menghan Li
ce45558927
balancer: make sure non-nil done returned by Pick is called ( #2688 )
...
Special case: when SubConn returned by Picker is not Ready, call done before
looping back to re-pick.
2019-03-19 10:47:09 -07:00
Doug Fawley
3c84def893
balancer: remove Header from PickOptions; it is also available through context ( #2674 )
2019-03-15 09:00:55 -07:00
Doug Fawley
0a391ff2b7
grpctest: add new package to manage tests and support per-test setup/teardown ( #2523 )
...
- Migrate `grpc` & `grpc/test` packages to use `Teardown` support to guarantee `leakcheck` is used
2019-01-07 14:24:56 -08:00