Commit Graph

4162 Commits

Author SHA1 Message Date
Bogdan Drutu a39675ab93
context: Avoid null checks for internal methods in Context (#6942)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-17 16:31:49 -07:00
Jihun Cho 68297d6d7c
core: implement Helper#createResolvingOobChannel (#6923) 2020-04-17 16:07:38 -07:00
Chengyuan Zhang 5803dfd9dc
okhttp: use new APIs for configuring TLS whenever possible (Android Q+) (#6912)
Use new APIs for configuring TLS in Android environment. Starting from Android 29, there is a new set of public APIs for configuring ALPN (and starting from Android 24, there is API for enabling SNI). This change migrates to use these new APIs whenever possible. Only fallback to call the old hidden APIs if new ones do not exist (or do not work).
2020-04-17 11:44:08 -07:00
sanjaypujare 56a410f5ac
xds: add tests & misc fixes based on outstanding items (#6935) 2020-04-17 10:59:55 -07:00
Chengyuan Zhang 03db20cded
xds: eliminate special code path for EDS-only workflow (#6931)
Delete special logics (e.g., fallback) for EDS-only workflow and use the same format of lb config for running EDS-only workflow as running the full CDS-EDS workflow.
2020-04-17 10:42:47 -07:00
Bogdan Drutu 52a72e2dcd
context: Cleanup ContextTest, use final, remove throws, use assertNull (#6941)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-17 10:38:27 -07:00
Ran 54d7e6ba65
xds: use checkArgument from Guava. (#6938) 2020-04-16 15:25:39 -07:00
Patrice Chalin da855f4164
Delete example-kotlin (#6936) 2020-04-16 13:55:05 -07:00
ZHANG Dapeng 3bd141bf18
xds: allow duplicated route matcher and prefix='/' 2020-04-16 13:50:26 -07:00
Kun Zhang 17b2b96d8a
netty: log the selection of allocators (#6930) 2020-04-15 14:44:02 -07:00
Chengyuan Zhang 2478912d79
xds: use separate LB configs for EDS policy running with different code paths (#6895)
The LB configs used for EDS policy diverges for the full xDS flow (generated by CDS policy) and EDS-only flow (received in service config). This change creates a separate config (EdsConfig) for the actual EDS LB policy. CDS policy generates EdsConfig directly and the wrapper policy (i.e., XdsLoadBalancer) converts received XdsConfig to EdsConfig for EDS-only flow.
2020-04-15 13:12:01 -07:00
sanjaypujare 9618af90e5
xds: remove UpstreamTlsContext from XdsChannelBuilder (#6924) 2020-04-15 09:23:44 -07:00
sanjaypujare 2f07c83fed
xds: eliminate downstreamTlsContext from XdsServerBuilder (#6901)
* xds: eliminate downstreamTlsContext from XdsServerBuilder


Co-authored-by: Jihun Cho <jihuncho@google.com>
2020-04-13 17:37:26 -07:00
ashithasantosh 2cc46acc55
Change logging level from INFO to FINE. (#6920) 2020-04-13 11:18:50 -07:00
Jihun Cho 050679bdf3
rls: child lb resolved address factory (#6886) 2020-04-13 10:46:19 -07:00
Jihun Cho 1a1583de52
rls: delegating helper for rls child policies (#6904) 2020-04-11 00:20:18 -07:00
Jihun Cho 1686d703e6
rls: rls request factory (aka key builder map) (#6823) 2020-04-10 15:56:40 -07:00
ashithasantosh cfe73eb484
Implemented Frame Size Negotiation in ALTS for gRPC Java. (#6840) 2020-04-10 13:38:46 -07:00
Eric Anderson 9ead606b84
netty: Reduce race window size between GOAWAY and new streams
The race between new streams and transport shutdown is #2562, but it is still
far from being generally solved. This reduces the race window of new streams
from (transport selection → stream created on network thread) to (transport
selection → stream enqueued on network thread). Since only a single thread now
needs to do work in the stream creation race window, the window should be
dramatically smaller.

This only reduces GOAWAY races when the server performs a graceful shutdown
(using two GOAWAYs), as that is the only non-racy way on-the-wire to shutdown a
connection in HTTP/2.
2020-04-10 12:03:23 -07:00
Jihun Cho 4974b51c53
rls: LruCache interface and implementation (#6799) 2020-04-10 10:52:13 -07:00
Chengyuan Zhang 833a3ff293
xds: handle EDS update with no localities (#6915)
Allow receiving empty LocalityLbEnpoints in EDS responses, it is LB policies' responsibility to go to TRANSIENT_FAILURE immediately when receiving an update with no locality.
2020-04-09 18:42:58 -07:00
Eric Anderson ec010c1a62 core: Delay transport shutdown during updateAddresses()
A user has been seeing "InternalSubchannel closed transport due to address
change" errors (b/153064566). It is unclear if they are predomenent, but they
are at least adding noise. Since #2562 is still far from being generally
solved, we delay the shutdown a while to side-step the race.
2020-04-09 14:59:48 -07:00
Andrew Gasparovic 2119fac35b
compiler: Remove unused function (#6911) 2020-04-08 14:12:00 -07:00
Chengyuan Zhang 54f9e29cdb
xds: fix lint warnings (#6907) 2020-04-07 15:31:36 -07:00
sanjaypujare 829a7c5a29
xds: remove hardcoded port and unneeded test (#6908) 2020-04-07 15:00:35 -07:00
ZHANG Dapeng c91e127f93
Start 1.30.0 development cycle 2020-04-07 14:12:53 -07:00
ZHANG Dapeng 5c31dc6d71
xds: migrating XdsNameResolver to "xds" scheme
Change "xds-experimenal" scheme to "xds" and add a deprecated provider with "xds-experimenal" scheme for keeping current users' tests working.
2020-04-07 11:52:41 -07:00
Chengyuan Zhang d88f0f19ec
xds: implement LRS LB policy (#6858)
Part of xDS LB policy refactoring work. Implement the LRS LB policy for "balancing" endpoints within a certain locality.
2020-04-07 11:44:36 -07:00
Jihun Cho 58a92b7530
rls: subchannel state manager (#6882) 2020-04-06 17:33:39 -07:00
Chengyuan Zhang ae4510a219
interop-testing: delete deprecated environment variable for enabling grpclb (#6903) 2020-04-06 13:42:01 -07:00
Chengyuan Zhang 8e9ceb5c3f
core: keep round_robin lb subchannel in TRANSIENT_FAILURE until becoming READY (#6657)
Make each subchannel created by RR stay in TRANSIENT_FAILURE state until READY. That is, each subchannel ignores consequent non-READY states after TRANSIENT_FAILURE.
2020-04-06 12:08:04 -07:00
Ran 37913fd3b1
stub: add Blocking StubType to blocking ClientCalls methods. (#6900) 2020-04-06 10:55:24 -07:00
ZHANG Dapeng 24e3d9587e
xds: generate xds-routing config from XdsNameResolver 2020-04-04 10:48:43 -07:00
Chengyuan Zhang a1815417de Update README etc to reference 1.28.1 2020-04-03 16:11:41 -07:00
sanjaypujare e68b1d2ed6
xds: ensure we shutdown XdsClientImpl when XDS Server is shut down (#6890) 2020-04-03 10:08:00 -07:00
ZHANG Dapeng 1086ee89c1
grpclb,xds: fix code lint 2020-04-02 18:18:32 -07:00
ST-DDT c89bf49b6a
api: Fix javadoc reference to deprecated method (#6894) 2020-04-02 16:43:28 -07:00
Eric Gribkoff 4ae7a37d7c
interop-testing: add health service to XdsTestServer (#6891) 2020-04-02 15:39:25 -07:00
sanjaypujare 7555a400db
xds: set listeningAddresses in Node and metadata as per the new interface (#6880) 2020-04-02 14:29:36 -07:00
Eric Anderson 84dd812db8 all: Add more projects to the all super-project
This adds to the published JavaDoc and reported code coverage.
2020-04-02 08:57:31 -07:00
Eric Anderson 103c33e821 services,grpclb: Filter internal files from javadoc/jacoco 2020-04-02 08:57:31 -07:00
Eric Anderson fb8833c57b all: Add grpc-xds
This will fix reporting of xDS code coverage.
2020-04-01 12:39:11 -07:00
Eric Anderson 186cfebcba all: Move jacocoTestReport exclusions to individual projects
The sourceSets.main.output.collect should probably be improved at some point to
improve loading performance, but this is technically better than what we had
before so let's call it a win and move on.
2020-04-01 10:33:32 -07:00
Chengyuan Zhang ffb70cd433
xds: patch unit tests for changes in locality filtering (#6881)
Add unit test that covers handling EDS responses containing: locality with 0 endpoint, locality with 0 weight.
2020-03-31 18:06:13 -07:00
sanjaypujare 5bb5e25583
xds: exclude 3 transitive deps from opencensus_proto to use our own (#6878) 2020-03-31 15:10:09 -07:00
Jihun Cho 6dbdfcdbbc
grpclb: CachedSubchannelPool use new create subchannel (#6831) 2020-03-31 13:31:04 -07:00
Jihun Cho ae211a1ba8
benchmarks: fix missing configuration for netty server (#6877) 2020-03-31 13:00:10 -07:00
Chengyuan Zhang 68391e4d1b
xds: filter EDS localities with clarified specifications (#6874)
Fix logic of filtering localites in EDS responses:
   - Each LocalityLbEndpoints message is allowed to contain 0 LbEndpoints. 
   - LocalityLbEndpoints without or with 0 weight are ignored. 
   - NACK responses with sparse locality priorities.
2020-03-30 14:24:48 -07:00
Chris Nokleberg e081f414a7
core: copy the SchemaDescriptor when rebuilding descriptor (#6851)
useMarshalledMessages works by duplicating a ServerServiceDefinition while replacing just the marshallers. It currently does not copy over the SchemaDescriptors, which breaks at least the ProtoReflectionService.
2020-03-30 14:07:24 -07:00
sanjaypujare 1bf5ad1527
xds: update to envoy commit id b16ce6d5ea0d2da73e764d145623e7367dc59ed3 (#6871) 2020-03-30 12:16:29 -07:00