Eric Anderson
0ff3f8e4ac
kokoro: Adjust android CIs to work with Ubuntu 22.04 image
...
It doesn't have Android SDK nor the VERSION file. See also d654707838
2024-07-09 08:16:24 -07:00
Eric Anderson
77b3bb77ef
buildSrc: Avoid duplicating group in checkForUpdates
...
getModule() returns a ModuleIdentifier, not a string. And the
identifier's toString() includes the module's group.
2024-07-09 08:12:55 -07:00
Eric Anderson
47aa7b9bca
Upgrade Checkstyle to 10.17.0
...
The code changes are to place all overloaded methods next to each other.
2024-07-09 08:12:33 -07:00
Matthieu MOREL
37d19babff
use grpc-proto bazel_dep instead of http_archive ( #11349 )
2024-07-09 13:01:43 +05:30
Eric Anderson
64cf9e8c20
Update README etc to reference 1.65.0
2024-07-08 12:43:25 -07:00
Eric Anderson
71eb5fb9f0
compiler: Upgrade from CentOS 7 to AlmaLinux 8
...
CentOS 7 became end-of-life on July 1st and is no longer working. We now
dynamically link against libstdc++, as RHEL 8 doesn't support static
linking: https://access.redhat.com/articles/rhel8-abi-compatibility
We now use objdump in check-artifact for all linux architectures. This
avoids using a mix of objdump and ldd. ldd shows transitive
dependencies, which is less convenient.
2024-07-03 13:26:14 -07:00
Eric Anderson
0454b9e328
xds: Avoid switchTo in PriorityLb
2024-07-03 10:32:38 -07:00
Eric Anderson
dfb22ba97c
xds: Avoid switchTo in ClusterImplLb and ClusterResolverLb
2024-07-03 10:32:38 -07:00
Eric Anderson
749b2e0abc
util: Avoid switchTo in OutlierDetectionLb
2024-07-03 10:32:38 -07:00
Eric Anderson
2c49cc4197
xds: Avoid switchTo in WrrLocalityLb and WeightedTargetLb
2024-07-03 10:32:38 -07:00
Eric Anderson
ebed04798c
util: Add GracefulSwitchLb config
...
This is to replace switchTo(), to allow composing GracefulSwitchLb with
other helpers like MultiChildLb. It also prevents users of
GracefulSwitchLb from needing to use ServiceConfigUtil.
2024-07-03 10:32:38 -07:00
João Vitor Stein
062ebb4d77
grpc-core: use retryThrottling from defaultServiceConfig
2024-07-03 08:19:22 -07:00
Benjamin Peterson
6e25c03a7b
core: remove GrpcUtil.getHost
...
This utility is not relevant on supported JDK versions anymore.
2024-07-02 08:18:03 -07:00
Larry Safran
ccfd351a2e
Enable new PickFirst LB ( #11348 )
2024-06-28 16:30:54 -07:00
Larry Safran
0b68eff120
core:Change address deduping to be across EAGs ( #11345 )
...
* Change dedup to be cross EAG, not just within an EAG
2024-06-28 14:58:50 -07:00
yifeizhuang
9e2145970a
doc: add document on WRR configure examples from service config and xds ( #11344 )
2024-06-27 16:55:38 -07:00
Larry Safran
7a53fa8bc1
Dualstack interop testing enablement ( #11231 )
...
* Have java test server listen on appropriate address based upon new optional flag "address_type"
2024-06-27 16:37:48 -07:00
Larry Safran
3777c303f5
deduplicate addresses within a single EAG ( #11342 )
2024-06-27 16:12:24 -07:00
Larry Safran
603033f1fa
Add null check to cleanup to avoid NPE ( #11340 )
2024-06-27 14:08:05 -07:00
cooper
25a8b7c507
Support setting onReadyThreshold through AbstractStub
...
Add copy of the onReadyThreshold property when copying CallOptions(fix bug)
2024-06-27 09:36:49 -07:00
Eric Anderson
e7c3803b5a
xds: Remove unused opencensus-proto dependency
...
opencensus-proto is old generated code, which is not compatible with
protobuf-java 4.27.2 and may not be fixed since the project is dead.
Since it is unused, I think this doesn't cause any trouble for
downstream users trying to use protobuf-java 4.x. Related to #11015 .
2024-06-26 15:30:31 -07:00
John Cormie
5770114d08
google-java-format binder/src/*/*.java ( #11297 )
...
https://github.com/grpc/grpc-java/blob/master/CONTRIBUTING.md#code-style
We've been talking about an incremental approach in https://github.com/grpc/grpc-java/issues/1664 but https://github.com/google/google-java-format/issues/1114 causes a bunch of manual formatting toil every time I run ~/google-java-format-diff.py because we have a LOT of lines >100 characters. Establishing a gjf-clean baseline will make things a lot easier for me.
2024-06-24 09:42:31 -07:00
Matthew Stevenson
46e54aeb4b
util: Add ExperimentalApi to AdvancedTlsX509KeyManager
...
There may be reordering of `updateIdentityCredentialsFromFile()`
arguments. Avoid making it stable while it is being evaluated.
2024-06-24 09:20:43 -07:00
Vindhya Ningegowda
4849e0a191
core: Add label values size validation in MetricRecorder ( #11306 )
...
Enhance MetricRecorder: Validate label values count against registered label keys count for default record APIs
2024-06-21 17:06:55 -07:00
Vindhya Ningegowda
1eec1459c2
Remove unused imports from CSM Observability example ( #11307 )
2024-06-21 16:17:33 -07:00
Vindhya Ningegowda
9e287f939e
all:Add GCP CSM Observability ( #11305 )
2024-06-21 14:35:39 -07:00
Vindhya Ningegowda
1aabc12955
Upgrade OpenTelemetry to 1.39.0 ( #11300 )
2024-06-21 14:35:24 -07:00
Vindhya Ningegowda
a409a1b459
examples: Add gRPC OpenTelemetry example ( #11299 )
...
Add gRPC OpenTelemetry example. The example uses Prometheus exporter to export metrics and can be verified locally.
It also provides an example using LoggingMetricExporter to export and log the metrics using java.util.logging.
2024-06-21 14:35:02 -07:00
Larry Safran
9b39b3ec6b
Eliminate NPE after recovering from a temporary name resolution failure. ( #11298 )
...
* Eliminate NPE after recovering from a temporary name resolution failure.
* Add test case for 2 failing subchannels to make sure it causes channel to go into TF.
2024-06-21 13:20:44 -07:00
Larry Safran
0fea7dd32e
netty:Fix Netty composite buffer merging to be compatible with Netty 4.1.111 ( #11294 )
...
* Use addComponent instead of addFlattenedComponent and do not append to components that are composites.
2024-06-20 15:55:06 -07:00
Sergii Tkachenko
d57f2719b2
services: restore //services:binarylog bazel target ( #11292 )
...
The target was wrongly deleted in 75492c8
/ #10832 .
See details in https://github.com/grpc/grpc-java/issues/4017#issuecomment-2159516522 .
2024-06-20 15:40:52 -07:00
John Cormie
15ad9f546c
binder: Simplify ownership of ServerAuthInterceptor's executor. ( #11293 )
...
Allocating this executor before BinderServer even exists is convoluted and actually leaks if the built server is never actually start()ed. Instead, have BinderServer own this executor directly, with a lifetime from start() until termination. Pass it to the ServerAuthInterceptor via TransportAuthorizationState Attribute instead of at construction time.
2024-06-18 18:56:33 -07:00
Eric Anderson
c540993aaa
bazel: Upgrade and fix import issues with envoy_api
...
Bazel was not updated as part of feab4e54
. Also, `(( X++ ))` exits 1 if
X is zero. The patch to data-plane-api was upstreamed in
https://github.com/envoyproxy/envoy/pull/34759
2024-06-17 14:58:14 -07:00
Vindhya Ningegowda
889893dd8c
examples: Add GCP CSM Observability example ( #11267 )
...
Add GCP CSM observability example client and example server.
2024-06-13 13:12:01 -07:00
Terry Wilson
85ed053006
api: Stabilize ServerBuilder.AddServices() ( #11285 )
2024-06-13 13:06:01 -07:00
Vindhya Ningegowda
b43d2830e4
opentelemetry: Add explicit histogram buckets for per-call metrics ( #11281 )
...
Add explicit histogram buckets for per-call metrics as specified in gRFC A66 https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#units .
2024-06-12 16:57:33 -07:00
Eric Anderson
a4ef77174d
Disable ErrorProne's MutableConstantField check ( #11283 )
...
It is simultaneously overly zealous and doesn't notice basic cases. As
noticed in #11281 .
2024-06-12 13:42:20 -07:00
Mike Kruskal
5322414505
Advertise editions support in plugin
2024-06-12 10:47:54 -07:00
Kannan J
14fd81f59b
Adding missing synchronization in the runnable that is causing access guard violation error. ( #11277 )
2024-06-12 11:09:59 +05:30
John Cormie
7fee6a3fea
Don't block an offload thread when the client's SecurityPolicy is async ( #11272 )
...
https://github.com/grpc/grpc-java/issues/10566
2024-06-09 22:38:41 -07:00
Eric Anderson
47249c5f00
Start 1.66.0 development cycle
2024-06-07 10:33:57 -07:00
Daniel Liu
4943b4c1e5
fix logging to be compatible with Android for AdvancedTlsX509KeyManager
2024-06-07 10:02:06 -07:00
Mateus Azis
34ee600dce
Wait for all BinderServerTransports to terminate before ... ( #11240 )
...
... returning security policy executor to the object pool.
Fixes #10897 .
2024-06-06 14:52:11 -07:00
John Cormie
1670e97f74
Reject further SETUP_TRANSPORT requests post-BinderServer shutdown ( #11260 )
...
Fixes https://github.com/grpc/grpc-java/issues/8931
2024-06-06 14:18:45 -07:00
Eric Anderson
a28357e197
okhttp: Workaround SSLSocket not noticing socket is closed
...
Using --runs_per_test=1000, this changes the flake rate of TlsTest from
2% to 0%.
While I believe it is possible to write a reliable test for this
(including noticing the SSLSocket behavior), it was becoming too
invasive so I gave up.
Fixes #11012
2024-06-06 09:39:35 -07:00
Eric Anderson
0a4df9f93c
binder: Make transport notification methods package-private
...
These are overrides of BinderTransport itself, so not used elsewhere.
They are essentially private. It was scary seeing `@GuardedBy` for a
public method. I copied the annotation to the base class to make sure
ErrorProne could verify the calls.
2024-06-06 08:59:32 -07:00
John Cormie
791f894e25
binder: Add a connection timeout ( #11255 )
...
Timeout is initially infinite so that we can release/import the supporting code and the behavior change independently.
Fixes #11137
2024-06-05 15:11:30 -07:00
Eric Anderson
22642465d3
gcp-csm-o11y: Add resource attributes from environment
...
This fixes csm_remote_workload_namespace_name being unknown when running
the interop test.
2024-06-05 10:21:50 -07:00
Eric Anderson
9e2cca08fa
gcp-csm-o11y: Use xds's shadow configuration
...
This prevents mixing shaded and non-shaded class files. We do the same
thing in all the other projects that depend on xds.
2024-06-05 06:56:27 -07:00
Eric Anderson
0358c508da
gcp-csm-o11y: Enable maven-publish plugin
2024-06-05 06:23:42 -07:00