NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Maven Central
Maven Central, #729 by repository stars
gRPC: Protobuf Nano
Latest stable
1.21.1
Last release 7 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 49 of 50 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
52 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
This release resolves the DoS vulnerability CVE-2019-9515 (SETTINGS flood). Users using the grpc-netty server with untrusted clients should upgrade.
This release resolves the DoS vulnerability CVE-2019-9515 (SETTINGS flood). Users using the grpc-netty server with untrusted clients should upgrade.
LoadBalancer.handleResolvedAddressGroups() is deprecated
Your coding agent can read these notes before it upgrades. Set up the MCP server →
io.grpc (not subpackages) were moved to a new artifact “grpc-api”, from grpc-core (#5590). This allows using the API without bringing in as many dependencies, and makes it easier for libraries to have an optional dependency on the rest of grpc. grpc-core now depends on grpc-api. Many users should be able to depend on grpc-api instead of grpc-core if they wish. grpc-core still contains the in-process transport, io.grpc.util, and internal classes used elsewhere in grpc. Most users should still expect to have at least a transitive dependency on grpc-core.MethodDescriptor.MarshallerNameResolverRegistry (#5586). It is now possible to construct a NameResolverProvider and register it into the global map manually. This is useful to inject dependencies into the name resolver.getService() method on MethodDescriptor (#5633)LoadBalancer.handleResolvedAddresses() API for handling resolved addresses which includes service config explicitly (#5499). LoadBalancer.handleResolvedAddressGroups() is deprecatedNameResolver.Args that deprecates NameResolver.Helper. (#5664)LoadBalancer.Helper and Subchannel further non-thread-safe (#5718)LoadBalancer.CreateSubchannelArgs with custom options (#5640)ManagedChannelBuilder.loadBalancerFactory() and all deprecated factories (#5480). Use LoadBalancerRegistry and ManagedChannelBuilder.defaultLoadBalancingPolicy() insteadClientStreamTracer.StreamInfo to a final class with a builder (#5648)ForwardingClientStreamTracer class for delegation use (#5589)StreamObserver.onNext() is called after onCompleted() (#5656)netty-transport-native-epoll and epoll supported OS (linux) (#5581)Thanks to all of our contributors:
core: Deprecated ClientStreamTracer.Factory#newClientStreamTracer is now deleted
Thanks to all of our contributors:
Deprecated previous NameResolver.newNameResolver() overload
grpc-bom is added (#5209)DEFAULT_CONNECTION_SPEC from OkHttpChannelBuilder (#5309)Thanks to all of our contributors:
core: Fixed typo in deprecation warning in RoundRobinLoadBalancerFactory (#5117). The balancer has the name round_robin in the registry (not round-rob…
round_robin in the registry (not round-robin)StreamObservers.copyWithFlowControl() only calls onComplete once (#4558)Thanks to all our external contributors:
Arnout Engelen @raboof Brendan Linn @ubehebe David Hoover @deadmoose Grant Oakley @groakley Rodrigo Queiro @drigz ST-DDT @ST-DDT Thomas Broyer @tbroyer Venil Noronha @venilnoronha Ze'ev Klapow @zklapow
Bazel users should no longer see “java.util.ServiceConfigurationError: io.grpc.LoadBalancerProvider: Provider io.grpc.util.SecretRoundRobinLoadBalance
core: LoadBalancer.Helper.runSerialized() is deprecated in favor of newly introduced getSerializationContext().
Do not use this release. Its handling of gRPCLB causes problems for the ecosystem
maxInboundMetadataSize() to ManagedChannelBuilder and ServerBuilder (#4897). It is now also implemented by the inprocess and okhttp transportsCallCredentials.MetadataApplier from an abstract class back to an interface, as it was in 1.15.x. Introduce a new CallCredentials2.MetadataApplier that is an abstract class, instead. This is ABI incompatible with 1.16.0 but ABI compatible with 1.15.x and 1.16.1 (#5007)final, as there is no purpose in overriding them. (#4954)Thanks to all our external contributors:
Change CallCredentials.MetadataApplier from an abstract class back to an interface, as it was in 1.15.x. Introduce a new CallCredentials2.MetadataAppl
CallCredentials.MetadataApplier from an abstract class back to an interface, as it was in 1.15.x. Introduce a new CallCredentials2.MetadataApplier that is an abstract class, instead. This is ABI incompatible with 1.16.0 but ABI compatible with 1.15.x (#5007)This version had an inadvertent ABI breakage in the @ExperimentalApi CallCredentials. Please use v1.16.1 instead.
This version had an inadvertent ABI breakage in the @ExperimentalApi CallCredentials. Please use v1.16.1 instead.
Thanks to all our external contributors:
OkHttp users are encouraged to upgrade, although if you aren't seeing the particular error mentioned below then you aren't strongly impacted. This is
OkHttp users are encouraged to upgrade, although if you aren't seeing the particular error mentioned below then you aren't strongly impacted. This is normally because you are doing small RPCs.
Non-Android users are encouraged to try enabling gRPC-LB on client-side in their environment and report any problems, even if you aren't interested in gRPC-LB. This will cause additional SRV lookups from DNS. We want to make sure it won't cause issues before enabling it by default.
-Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true, which will become the default in the future. We encourage users to try out the option and report back issues, especially additional connecting latency, to https://github.com/grpc/grpc-java/issues/4898.transportExecutor(), sslSocketFactory(), and scheduledExecutorService() are now deprecated in favor of calling the same methods on OkHttpChannelBuilde…
Java 6 is no longer supported. Java 7 is the oldest supported Java version. Android support is unchanged at API level 14. See the announcement. Contrary to the announcement, grpc-context is requiring Java 7. If any Java 7 requirement is causing you issue, please file a GitHub issue.
GoogleCallCredentials can now be sent via ALTS channel (#4657)--use_alts default in the usage printout (#4538)ProxyDetectorImpl (#4677)AndroidChannelBuilder.fromBuilder() (#4723). transportExecutor(), sslSocketFactory(), and scheduledExecutorService() are now deprecated in favor of calling the same methods on OkHttpChannelBuilder before passing it to AndroidChannelBuilder.fromBuilder(). While AndroidChannelBuilder still depends on OkHttpChannelBuilder, it no longer has to duplicate the API.GoogleDefaultChannelBuilder that sets up a secure channel using ALTS if on a properly configured Google Compute Engine instance and using TLS as fallback (#4742). In this release it adds little value unless you enable -Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true and have a GCE environment with ALTS enabled. In the future it will become the expected way to create a connection to googleapis.com.StatusException and StatusRuntimeException’s constructors with trailers are now stabilized (#4686).StatusException and StatusRuntimeException’s getTrailers() are now stabilized (#4697)InProcessSocketAddress now forbids null names and has better-defined equality. (#4728)@Deprecated if option deprecated = true is set from the proto file (#4741)Thanks to all our external contributors:
OkHttpChannelBuilder#negotiationType is now deprecated
Notice: This is expected to be the last version supporting Java 6. Comment on #3961 if this causes you trouble. Android API level 14 support will be unchanged.
Updated to Netty 4.1.27 and Netty TCNative 2.0.12
gRPC is now regularly tested with JDK 9 and 10
Warning, a bug was discovered after this release where using Netty Epoll would increase memory usage. Please avoid this release of gRPC if you know you use Netty Epoll
OkHttpChannelBuilder#negotiationType is now deprecatedRpcMethod annotation for use with annotation processorsList<EquivalentAddressGroup> to LoadBalancer Subchannels, in addition to the option of providing a EquivalentAddressGroup (EAG). This prevents the need for LoadBalancers to "flatten" a List<EquivalentAddressGroup> into a single EquivalentAddressGroup which loses/confuses the EAG's Attributes. NameResolvers can now specify Attributes in an EAG and expect that the values are passed to gRPC's core. Future work will add List<EAG> for OobChannels.toString() methodenterIdle() will exit idle mode if channel is still in use (#4665)TransmitStatusRuntimeExceptionInterceptor now avoids accidentally double closing the call.StreamObserver interaction with thread safetyThanks to all our Contributors:
Fix regression that broke Java 9 ALPN support. This fixes the error "SunJSSE selected, but Jetty NPN/ALPN unavailable" (#4620).
CallOptions API: Deprecated CallOptions.Key.of, added CallOptions.Key.create and CallOptions.Key.createWithDefault, and stabilized CallOptions.Key and…
v1.13.0 wasn’t published to maven central due to a releasing process issue and the tag was deleted. The binaries of v1.13.0 were effectively the same as v1.13.1.
FOO_METHODProtoUtils now has metadataMarshaller analogous to ProtoLiteUtilsjsonMarshaller has been removed from grpc-java library (and added into examples)@CheckReturnValue annotation to AbstractStub, CallOptions, and Context
CallOptions API: Deprecated CallOptions.Key.of, added CallOptions.Key.create and CallOptions.Key.createWithDefault, and stabilized CallOptions.Key and CallOptions.withOptionManagedChannelBuilder.maxInboundMessageSize APIGrpcCleanupRule which is more flexible to use than GrpcServerRulePRIVACY_AND_INTEGRITY for GoogleCredentialstoString() to ClientCallImpl and GrpcFuture
Attributes.hashCode() methodCallCredentials.ATTR_SECURITY_LEVEL from transportsClientCall and ClientCall.ListenerServerInterceptor.interceptCall API
Fix regression that broke Java 9 ALPN support. This fixes the error "SunJSSE selected, but Jetty NPN/ALPN unavailable" (#4620).
okhttp: Convert to internal ConnectionSpec eagerly and deprecate OkHttpChannelBuilder.DEFAULT_CONNECTION_SPEC (#4267). After DEFAULT_CONNECTION_SPEC i…
CronetChannelBuilder.scheduledExecutorService() so application can be in control of all threads (#4249)TRANSPORT_ATTR_REMOTE_ADDR (#4217)InputStream overloads for ServerBuilder.useTransportSecurity() and GrpcSslContexts.forServer()AndroidChannelBuilder (#4172). This is an Android-oriented builder and able to receive an Android Context.-Dio.grpc.internal.DnsNameResolverProvider.enable_jndi=true and creating the appropriate DNS TXT record. This will be documented more thoroughly in the near future. There are numerous caveats with this feature and thus is not ready for general usage.awaitTerminated() to return true or call shutdownNow() to avoid the warningOkHttpChannelBuilder.DEFAULT_CONNECTION_SPEC (#4267). After DEFAULT_CONNECTION_SPEC is removed this will save around 40 methods@since for StatusProto.fromStatusAndTrailers (#4287)core: ManagedChannelBuilder.usePlaintext(boolean) is now deprecated. Use usePlaintext(void) instead, which is equivalent to usePlaintext(true). usePla…
ManagedChannelBuilder.usePlaintext(boolean) is now deprecated. Use usePlaintext(void) instead, which is equivalent to usePlaintext(true). usePlaintext(false) was almost always a bug, but is still available by specifying NegotiationType.PLAINTEXT_UPGRADE to NettyChannelBuilderInProcessChannelBuilder.scheduledExecutorService(exec) to override the default timer executor used by gRPCOkHttpChannelBuilder.scheduledExecutorService(exec) to override the default timer executor used by gRPCStatusProto.fromStatusAndTrailers() to convert to a com.google.rpc.Status directly from a io.grpc.Status (instead of a Status*Exception)refresh() after a delay. This replaced the hard-coded 60-second retry timer in the DNS name resolver. (#4105)ServerCall.Listener.onCancel() called instead of onComplete(). The client will now see a cancellation instead of an explicit status message (#3819)ProxySelector with Netty. This should finally enable the use of forward proxies that require authentication. Users should be able to migrate from GRPC_PROXY_EXP to -Dhttps.proxyHost at this time (#4137)netty: fix regression where using GRPC_PROXY_EXP with the Netty transport would cause an UnresolvedAddressException (#4178). ProxySelector (including
core: deprecate passing ServerCall to StatsTraceContext
@Internal and @ExperimentalApi retention policies to CLASS, to enable the upcoming grpc/grpc-java-api-checker to access these annotations (#3994)core: fix regression in v1.9.0 where the user-agent would be like "grpc-java-netty1.9.0" instead of "grpc-java-netty/1.9.0"
ProxySelector (including the default one that processes -Dhttps.proxyHost) is still known-broken for Netty; this is being tracked in #4029noopMethodDescriptor, NoopClientCall, NoopServerCall, various APIs from TestUtils. These were previously marked deprecated
-Dio.grpc.internal.DnsNameResolverProvider.enable_jndi=true (#3852)HandlerRegistry (#3760)ManagedChannelBuilder.overrideAuthority() (#3761)useTransportSecurity() in ManagedChannelBuilder. This can be used to reverse the effects of usePlaintext() (#3561)noopMethodDescriptor, NoopClientCall, NoopServerCall, various APIs from TestUtils. These were previously marked deprecated (#3790)DeadlineSubject removed from the testing package to avoid requiring newer Guava versions brought in by the Truth dependency. We anticipate few users will be impacted; if this impacts you please open an issue (#3786)IOExceptions as UNAVAILABLE. Previously they were UNAUTHENTICATED. This only applies when retrieving credentials, like OAuth tokens (#3757)getRequestMetadata() and avoid using DelayedStream and a thread hop when the credentials are known immediately. (#3758)com.google.instrumentation to io.opencensus 0.10.0 for stats reporting. (#3647)proto-google-common-protos upgraded to 1.0.0 (#3765)4.1.17-Final (#3770). Users will need to upgrade to netty-tcnative 2.0.7.Final.1.13.0 (#3806)3.5.1 (protoc to 3.5.1-1) (#3921)Atomic*FieldUpdater bug on some Samsung Android 5.0.x devices (#3754)core: Removed deprecated load balancer and name resolver APIs. This includes LoadBalancer.handleResolvedAddresses(), LoadBalancer.Helper.updatePicker(…
LoadBalancer.handleResolvedAddresses(), LoadBalancer.Helper.updatePicker(), NameResolver.Listener.onUpdate(), ResolvedServerInfo, and ResolvedServerInfoGroup@DoNotMock annotations to AbstractStub, CallStreamObserver, ClientCallStreamObserver, ServerCallStreamObserver. The normal gRPC implementations of these classes should be used in testsenable_deprecated protoc plugin option (#3541). These deprecated APIs pre-date 1.0 and were off by defaultMETHOD_FOO constants with static getFooMethod() methods. The constants are deprecated and will be removed in a future release. Once the constants are removed, this change will allow the descriptors (and the messages they reference) to be lazily created which can dramatically decrease class initialization time and allows unused RPC messages to be removed by Proguard.TestMethodDescriptors.noopMethod() is deprecated in favor voidMethod() or test services. The simple service in grpc-testing-proto should work in most cases where voidMethod() is insufficientDeadlineSubject experimental. It is planned for removal to ease future Guava dependency issues with Truth. It could be moved into its own artifact, but best as we can tell nobody is using it. If you're using it, please file an issue so we can be made awareStreamRecorder. It will be removed in a future release. The class is very old (since the beginning in OSS) and was used in internal tests before there were blocking stubs. Most users should use blocking stubs instead. To use properly, you must know the class's implementation; if you liked it, copy the code to your own codebaseTestUtils.recordServerCallInterceptor(). It will be removed in a future release. It has no known use cases for normal usersCancellableContext now implements Closeable (#3607). close() is an alias for cancel(null). This should make it more clear that the context needs to be cancelled/closed, while also enabling try-with-resourcesAttributes.Builder.build() may now be called multiple timesPickResult.withDrop(Status). This is necessary if the LB wants to fail waitForReady RPCs to shed loadMethodDescriptor.getSampledToLocalTracing()/Builder.setSampledToLocalTracing to permit per-method stats keeping memory overhead (#3627). The option is to prevent unbounded memory overhead when dynamically-created MethodDescriptors are used and is enabled in the generated code.resetConnectBackoff() method to ManagedChannel. This can be used when the OS notifies your application that the network has become availablestub.withExecutor(Executor). This was already available on CallOptions and can be used to specify a call-specific executor to use for callbacksTlsTesting.loadCert as an alternative to deprecated TestUtils.loadCert. The TlsTesting version returns an InputStream instead of a File which avoids creating temporary filesServerBuilder.handshakeTimeout()LoadBalancer.shutdown()ProxySelector. This enables observation of the Java-standard proxy options -Dhttps.proxyHost=host -Dhttps.proxyPort=port. Authenticator is consulted for along with auth. Users of the GRPC_PROXY_EXP environment variable should migrate; the environment variable will be removed in a future release.io.grpc.netty.NettyServerTransport.connections (#3591).IOExceptions as UNAVAILABLE instead of UNAUTHENTICATED (#3267). This allows retrying RPCs if the OAuth token failed to be retrievednull, we now include a description in the Status to help expose what happenedcore: Added handshake timeout for all server transports. The default is 120 seconds, which matches the client-side timeout. The default can be overrid
ServerBuilder.handshakeTimeout()Update netty to 4.1.16. Users will need to use netty-tcnative 2.0.6 or later.
omit_com_google_code_gson=True or omit_io_opencensus_api=True to grpc_java_repositories() (#3379)java_grpc_library() rule when depending on protos in external repos (#3483)idleTimeout() is configured on the Channel (#3374)v1.6.0 was mistagged and has been deleted. The binaries of v1.6.0 are effectively the same as v1.6.1.
v1.6.0 was mistagged and has been deleted. The binaries of v1.6.0 are effectively the same as v1.6.1.
-keeps in their ProGuard configuration (#2633)ManagedChannel.getState/notifyWhenStateChanged. This requires LoadBalancer support; custom LoadBalancers should be updated to call updateBalancingState() instead of updatePicker()ClientCallStreamObserver.cancel() allows clients to cancel RPCs without requiring using an interceptor or Context (#3115)OkHttpChannelBuilder.hostnameVerifier() (#3205)Channel.shutdown() was not called. The calls may still fail, but will have a more accurate message (#3351)Context.attach() must be the one passed into detach() (#3292)Nothing published for this version
MethodDescriptor.create is now deprecated
The previously deprecated affinity API is now deleted.
build() instead of creating a hung channel (#2599)javax.naming.** classes (#2912)OkHttp now ignores unknown SETTINGS (#3032). This resolves an important incompatibility with C-wrapped language instances of gRPC
Backports from 1.4.0:
CallOptions.withAffinity is now deprecated in favor of withOption and will be removed in the next release
io.grpc.protobuf.StatusProto for working with com.google.rpc.Status, which can include additional error detailsStreamTracers on client- and server-side. These can be used by tracing frameworks and LoadBalancers to be notified of relevant RPC events and details. OkHttp and Netty support the tracers, but InProcess does notMethodDescriptor.Builder is now non-experimentalLoadBalancer2 to LoadBalancer was removed as plannedLoadBalancer.SubchannelPicker.pickSubchannel(Attributes, Metadata) was deleted as planned in favor of the more extensible LoadBalancer.SubchannelPicker.pickSubchannel(PickSubchannelArgs)CallOptions.withAffinity is now deprecated in favor of withOption and will be removed in the next releaseNettyChannelBuilder. and OkHttpChannelBuilder.enableKeepAlive is now deprecated in favor of keepAliveTime and keepAliveTimeout and will be removed in the next releaseResolvedServerInfoGroup and ResolvedServerInfo are deprecated and are planned for deletion in the next releaseThe new Load Balancer API (and ManagedChannelImpl) is now default; the previous one is removed
This is a patch release to the 1.1 gRPC branch that fixes two minor issues:
This is a patch release to the 1.1 gRPC branch that fixes two minor issues:
grpc-all artifact on the yet to be released grpc-thrift artifactThe grpc-io mailing list was notified of our intentions and reasoning. This is a breaking change but is not expected to impact production code. If a t…
I am pleased to announce availability of gRPC Java 1.1.1, the next minor release of gRPC. This includes several months of changes made since 1.0.3. There are many bug fixes, API improvements, and performance changes in this release.
grpc-context. It can (and will) be used for implementing cross RPC state, such as for stats and tracing.Mockito.when(service.bindService()).thenCallRealMethod();. If this change causes you pain, please file an issue and we may revisit it.examples/ directory.Note that all classes marked @ExperimentalApi and @Internal aren't guaranteed to be API stable, and may be changed without notice. Classes and methods marked @Deprecated should be avoided and may be removed in a later release. Of note is ClientAuthInterceptor, which should be avoided in favor of MoreCallCredentials.
The v1.0.3 release has a small bugfix and experimental support for forward proxies. Only users of InProcess transport in tests or users wanting to tes
The v1.0.3 release has a small bugfix and experimental support for forward proxies. Only users of InProcess transport in tests or users wanting to test the forward proxy support benefit from the update.
GRPC_PROXY_EXP environment variable and set to a host:port-formatted string. Error handling is known to be weak when negotiating with the proxy; most proxy failures will result in a generic error. Errors after negotiation completes are unaffected.The v1.0.2 release is a bug fix release with no new features. The following specific fixes were backported from the master branch:
The v1.0.2 release is a bug fix release with no new features. The following specific fixes were backported from the master branch:
Moved io.grpc.Context and io.grpc.Deadline from grpc-core to its own artifact, grpc-context. This is to allow wider usage of the API and avoid circula
io.grpc.Context and io.grpc.Deadline from grpc-core to its own artifact, grpc-context. This is to allow wider usage of the API and avoid circular dependencies. grpc-core depends on the new artifact. (#2226)Errors could end up being wrapped in RuntimeException (#2131)TransportSet (#2258)grpc-protobuf-lite now depends on protobuf-lite. Since grpc-protobuf depends on grpc-protobuf-lite, grpc-protobuf explicitly excludes the protobuf-lit
Generated interfaces and methods that were deprecated in v0.15.0 are now removed. To ease migration, the grpc protoc plugin supports the option enable…
enable_deprecated=true which will re-enable the old generated APIs. This option will be removed in a later release.
directExecutor() for both the client and server. Some tests may need to use a ClientInterceptor to verify the CallOptions. We plan to improve convenience utilities over time; please file a bug for testing issues or suggested utilities.ManagedChannelBuilder.maxMessageSize() and ServerBuilder.maxMessageSize() can override the default. Larger sizes are not a problem for grpc, but applications should be aware when they may receive large messages.ManagedChannelBuilder.idleTimeout(). IDLE disconnects the TCP connection and shuts down the name resolver and load balancer. This is generally useful for reducing resources, but can also be used on Android to avoid broken TCP connections on bad networks and "avoid" timeouts of NATs and load balancers.OkHttpChannelBuilder.enableKeepAlive(). Keepalive uses HTTP/2 PINGs while RPCs are in progress to monitor the TCP connection and signal activity to NATs and load balancers. Keepalive does nothing if no RPCs are in progress, thus is primarily useful when for long-lived streaming RPCs. This implementation preempts the design of keepalive being finalized, but was important enough for mobile networks to have something available sooner. This can be used on Android to detect broken TCP connections on bad networks and reset timeouts of NATs and load balancers.ServiceLoader on the platform. If your application never calls Class.getResource(), this will reduce memory on some Android versions and speed construction of your first ManagedChannel. This also simplifies the necessary ProGuard configuration. General-purpose 3rd-party providers for NameResolver and ManagedChannel that may be used on Android should request to be added to the hard-coded list.ClientCall.cancel(String, Throwable) is now a required method and will log a warning when called with neither a message nor cause. This completes the migration from ClientCall.cancel(void) which was very difficult to debug where cancel was called.StatusRuntimeExceptions for blocking unary calls should now include trailers.…and grpc-interop-testing. APIs marked @Deprecated in this release are not covered. Mocking frameworks purposefully break API assumptions, so we can't…
APIs and codegen are guaranteed stable, excluding APIs marked with @ExperimentalApi or @Internal, APIs within an internal package, and utilities like grpc-benchmarks and grpc-interop-testing. APIs marked @Deprecated in this release are not covered. Mocking frameworks purposefully break API assumptions, so we can't guarantee stability with them.
ForkJoinPool, as the executor is the bottleneck for high CPU (16+ core), high QPS benchmarks. On smaller workloads using normal ThreadPoolExecutor is fastergenerated AbstractService class and interfaces are now deprecated in favor of ServiceImplBase
Update Netty to v4.1.1.Final, which is the first stable release we've released with. gRPC-java v0.14.0 was already compatible with Netty v4.1.1. This
It is now possible to use JSON-encoded protobufs.
interceptForward().ExtensionRegistry.CallOptions now uses Attributes for affinity routing.CallStreamObserver and ServerCallStreamObserver as specialized Stub observers.CallOptions and stubs now uses Deadline instead of a long of nanoseconds.TransportSets.Updates to Netty 4.1.0.CR3, which allows using netty-tcnative-boringssl-static 1.1.33.Fork14 which does not give a warning about executable stacks. Al
This release contains a single fix (103d3d1) to avoid an out-of-order headers bug impacting Netty-4.1.0.CR1. The bug manifests when starting multiple
This release contains a single fix (103d3d1) to avoid an out-of-order headers bug impacting Netty-4.1.0.CR1. The bug manifests when starting multiple RPCs simultaneously as an opaque error before receiving any responses or the RPC never receiving any response or status. If an RPC was successful then it was not impacted
Support netty-tcnative-boringssl-static, which does not require OpenSSL to be installed. See SECURITY.md. The current build works but omits a warning;
New and Notable:
Context.Key now uses instance equality, so if you reduce visibility to your Key you are guaranteed others can't access the valueOther changes:
Executor for callbacks per-RPCLoadBalancer now uses generics to no longer depend on any internal classesMetadata.keys() for iterating over all metadataConcurrentModificationException caused when new RPCs are being made when we transition to a freshly-connected transportScheduledExecutorService; you must provide one when setting a deadlineByteBuffer leak when queued RPCs fail (#1401)onReady() correctly (#875)StatusRuntimeException instead of a RuntimeExceptionOkHttpChannelBuilder.overrideHostForAuthority() is deprecated; use overrideAuthority() which is available on all ManagedChannelBuilders
General:
{ManagedChannel,Server}Builder.directExecutor() for low-latency use cases, with specialized handling internally to remove unnecessary locking{Client,Server}Call.request() is now defined as thread-safeAndroid:
SSLCertificateSocketFactoryOkHttpChannelBuilder.overrideHostForAuthority() is deprecated; use overrideAuthority() which is available on all ManagedChannelBuildersjavanano_use_deprecated_packageServers/Datacenter:
ManagedChannelBuilder.loadBalancerFactory. Expect more in this area in the futureManagedChannel.forTarget(). Providing custom name resolvers is supported via ManagedChannelBuilder.nameResolverFactory. Currently only DNS is implemented. Expect more in this area in the futureContext:
Context helpers for Executors: Context.wrap(Executor) and Context.propagate(Executor). The former uses the current context whereas the latter uses the current Context when Executor.execute() is calledContext no longer maintains a stack of attachments and now just maintains the "current". Now, attach() returns the previously-attached Context which is then required to be passed to Context.detach(). This allows naturally restoring a consistent state when applications have bugs when attached/detaching ContextsContext now notifies all its direct listeners before notifying child contextsContext on both client and server. For client, the current Context during new call creation will be the current context during callbacks. For server, a new Context is created for each incoming call and cancelled when server responds_Hostname verification on Android_, when not providing your own SSLCertificateSocketFactory
SSLCertificateSocketFactoryUpdated to protobuf 3.0.0-beta-1. Codegen supports javanano_use_deprecated_package, but is not using it for determining which package to generate gRPC…
This release of gRPC-Java is considered beta quality.
As of this release, we expect no breaking API changes unless marked otherwise. This applies to API in packages io.grpc, io.grpc.auth, io.grpc.stub, and io.grpc.protobuf, as well as normal protobuf generated code. This does not apply to undocumented behavior; we are very likely to align gRPC-Java with the other gRPC implementations by trying harder before failing RPCs.
The codegen is not yet guaranteed forward-compatible as it uses unstable APIs. This will be resolved by 1.0. For now, you must still use the same version of the gRPC-Java protoc plugin as runtime version.
@Internal should not be used and those marked with @ExperimentalApi may change in the futureStreamObserver.onValue has been renamed to onNext to align with RxJavaChannelImpl should now become ManagedChannelManagedChannelBuilder.forAddress(String, int) is now the preferred way of obtaining a channel builder; all transport-specific APIs do not have guaranteed API stability. Similarly, there is ServerBuilder.forPort(int) for server-sidemaxMessageSize(int) configurationjavanano_use_deprecated_package, but is not using it for determining which package to generate gRPC code. That will change in the next releaseServiceAccountJwtAccessCredentials. In the future will likely support auto-conversion from ServiceAccountCredentials for use with GoogleCredentials.getApplicationDefault()ServerCall.onComplete() is called instead of ServerCall.onCancel(). This was already the behavior, but the documentation now agreesAs we rapidly approach our beta release, we are cleaning up our API and organizing our code to increase maintainability. All breaking changes should h…
As we rapidly approach our beta release, we are cleaning up our API and organizing our code to increase maintainability. All breaking changes should have clear and available alternatives (method and class renames).
This is a patch release of v0.7.x that addresses two issues:
This is a patch release of v0.7.x that addresses two issues:
This is a patch release of v0.7.0 that fixes #504 (via cdd81d2e75ecee6e49dfeaeffcfb4882a8fdbd36). The patch addresses a race condition where multiple
This is a patch release of v0.7.0 that fixes #504 (via cdd81d2e75ecee6e49dfeaeffcfb4882a8fdbd36). The patch addresses a race condition where multiple Netty transports can be created by the same builder, resulting in an unsharable handler being added to multiple Netty pipelines. In addition, better error handling has been added to the bootstrap of TLS pipelines in order to detect errors that occur early on in protocol negotiation that may have previously been missed.
First tagged release of gRPC-Java with artifacts and dependencies on Maven Central, complete with binary protoc plugin.
First tagged release of gRPC-Java with artifacts and dependencies on Maven Central, complete with binary protoc plugin.
gRPC-Java is considered alpha quality and does not yet guarantee API-stability.
One column per quarter.