Commit Graph

2468 Commits

Author SHA1 Message Date
Eric Anderson efcbef58e3 core: add missing separator in user-agent
The separator was accidentally removed in 1bbe126b4
2018-01-17 08:17:36 -08:00
zpencer 32ad2311ad
core: channel tracer should report target name and ConnectivityState (#3969)
This addresses regular channels and oob channels.
2018-01-16 10:05:30 -08:00
Eric Gribkoff 8ecef08d33 buildscripts: add Kokoro-based CI for gRPC Cronet 2018-01-16 09:16:04 -08:00
Eric Gribkoff c7a5bd7a5c cronet: add build.gradle and script for Cronet deps 2018-01-16 09:16:04 -08:00
Carl Mastrangelo 98aa69af72
core: make ManagedChannel honor Service config LB
I think the idle state transitions are correct. I have looked at them and tried tracing a few paths through. This doesn't go full idle because the name resolver doesn't need to be restarted. Also, the LB transition happens inside of a NR callback, so it would be odd to have the NR terminate itself upon successful resolution. (Might this cause recursion? I think it may).
2018-01-12 16:56:54 -08:00
Eric Anderson bd7080337b core: Mention limitations of connectivity state API
These limitations are by design, but may be non-obvious.
2018-01-12 12:21:50 -08:00
Eric Anderson 34cc66cca2
RELEASING.md: Add creating/closing of the milestone 2018-01-12 08:35:32 -08:00
Eric Anderson 71bad37402 Update protobuf-gradle-plugin to 0.8.3
This fixes support for newer Android Gradle Plugins.
2018-01-12 08:34:05 -08:00
Carl Mastrangelo a3d801d07d
netty: make GrpcHttp2ConnectionHandler able to indicate it will no longer be used
This adds a method on GrpcHttp2ConnectionHandler which, when called, indicates that the channel associated with the handler is no longer needed.   

Notes:

* The handler may not be on the channel, but will either need to be added or will never be added.
* The channel will only be "unused" on the server side.
* It is expected that after calling `notifyUnused()`, the channel will be deregistered from the loop without being properly shut down.   This allows the channel to be handed off to a Non-netty API.
2018-01-11 14:12:12 -08:00
Ryan Michela 6990e57a42 COMPILING.md: Added note for IntelliJ building (#3958) 2018-01-11 13:58:03 -08:00
Eric Anderson 0853f3563f buildscripts: Add Kokoro-based Bazel CI 2018-01-11 10:28:21 -08:00
Eric Anderson ba8063e7b0 all: Prefer mock+delegatesTo() over Mockito.spy()
Spies are really magical and easily produce unexpected results. Using them in
tests can easily yield tests that don't do what you think they do. Delegation
is much safer when possible.

Delegation doesn't work when methods `return true`, final methods, and with
restricted visibility, though. So CensusModulesTest and
MaxConnectionIdleManagerTest are left as-is.
2018-01-11 09:32:54 -08:00
Eric Anderson 80e61d2589 clear JAVA_HOME 2018-01-11 09:27:33 -08:00
Eric Anderson 396cf4d901 buildscripts: Avoid Java 9 for Windows CI
Our build isn't happy on Java 9 yet.
2018-01-11 09:27:33 -08:00
Eric Gribkoff d0bbeced80
interop-testing: fix race in TestServiceImpl 2018-01-10 14:27:15 -08:00
Eric Anderson af0283477d Update ErrorProne to 2.2.0 and fix failures 2018-01-10 14:14:27 -08:00
zpencer 16cec947c5
core: MethodDescriptor.toBuilder() should copy schemaDescriptor (#3941) 2018-01-10 13:15:25 -08:00
Kun Zhang 4115491a24
Update README to reference 1.9.0 (#3934) 2018-01-09 13:28:54 -08:00
Eric Anderson 4bc0c95d0b Update ErrorProne to 2.1.3 and fix failures
The fixes could have subtle side-effects, but I did take care when making them.
2018-01-09 12:40:55 -08:00
zpencer c96ce4de20
services: fix lint warnings on binlog (#3927) 2018-01-09 12:08:58 -08:00
Rodrigo Queiro 2fb5d53d1b bazel: Remove com_google_protobuf_java
This was deprecated with Bazel 0.8.0, which now uses
@com_google_protobuf instead.

This change will break users that use
grpc_java_repositories(omit_com_google_protobuf_java=True), so I've
added a custom error message to make the resolution clearer.
2018-01-09 11:02:03 -08:00
jyane 015b2fffa3 auth,bazel: add a bazel build definition 2018-01-08 15:33:20 -08:00
Shohei Kamimori 3b93fd44bd bazel: fix protobuf sha256 2018-01-08 15:11:20 -08:00
Eric Anderson 35a6bf863d Enable the Guava Beta Checker 2018-01-08 14:52:51 -08:00
Eric Anderson c9657d3e6d
RELEASING.md: Remove Jenkins job creation
We're no longer using Jenkins, and the equivalent parts necessary for
Kokoro are in go/grpc/java/releasing.
2018-01-08 08:22:14 -08:00
Kun Zhang 86d64122e5
Upgrade to Protobuf 3.5.1 and Protoc 3.5.1-1. (#3921)
protoc-3.5.0-linux-x86_64 introduced GLIBC_2.14 dependency and broke
gRPC release process (https://github.com/google/protobuf/issues/4138).
3.5.1-1 is the proper re-build.
2018-01-05 16:40:20 -08:00
Shohei Kamimori 5aed252105 bazel: use same version libraries which gradle uses 2018-01-05 09:57:19 -08:00
Spencer Fang 3809f676ee core: make TransportStats package-private
Limited access will be granted via InternalTransportStats.
2018-01-04 15:35:04 -08:00
ZHANG Dapeng e03fe6a374
protobuf-lite: should not have dependency on core_internal 2018-01-04 14:00:25 -08:00
Spencer Fang c4577ecc65 respond to comments 2018-01-04 13:34:47 -08:00
Spencer Fang 0191d0d555 services: utility methods for create binlog protos 2018-01-04 13:34:47 -08:00
Spencer Fang 610066896f buildscripts: filter in only the kokoro java project 2018-01-04 10:57:35 -08:00
Spencer Fang d86647aebd buildscripts: automatically delete versions older than 1hour, always succeed if reach end 2018-01-04 10:57:35 -08:00
Spencer Fang 692cffe763 buildscripts: automatically delete versions older than 1day 2018-01-04 10:57:35 -08:00
Spencer Fang cdc480d353 buildscripts: fix error using cmd output rather than $? 2018-01-02 14:21:40 -08:00
ZHANG Dapeng 450a983552
core: rm unused variable and method 2018-01-02 10:06:10 -08:00
ZHANG Dapeng 66119463ad
core: fix java ErrorProne 2017-12-28 13:06:58 -08:00
zpencer e7b2089c85
core: ManagedChannel should not depend on internal (#3898) 2017-12-28 11:04:11 -08:00
ZHANG Dapeng 40453c744f
core: fix unimplemented API in ManageChannel
Two APIs were added to ManageChannel. This would be API breaking if they are still abstract.
2017-12-27 13:30:12 -08:00
Teo Jia Jiun 3e76bf143b netty: Use Java 9 ALPN if available 2017-12-21 14:26:09 -08:00
Shohei Kamimori b1d62b70c4 core: remove unused variables 2017-12-20 10:27:16 -08:00
ZHANG Dapeng 2fe8ce23b2
core: retry support part 1 followup, channel.shutdown should not fail retry in backoff
As delayedTransport `shutdown` will make retry attempts that are in backoff unable to create new stream. So wrap delayedTransport with `retriableTransport`, which will keep uncommitted retriable streams alive when `shutdown`.
2017-12-20 10:24:28 -08:00
ZHANG Dapeng 659cce52b6
Revert "testing: delete deprecated StreamRecorder" (#3801)
This reverts commit dc71083ce9.

StreamRecorder is too old and may have users unable to migrate it out easily soon.
2017-12-20 10:05:17 -08:00
zpencer 73f0fe1eca
gae: retry on exceptions too, not just on non 200OK (#3885) 2017-12-19 16:13:24 -08:00
jwpowell055 cdb911eb5c all: updating SHA-1 checksum for com_google_api_grpc_google_common_protos Skylark rule.
The new value is reported as the expected value when performing

$ bazel build //...

on a clean pull of this repo. The new value can also be confirmed via

$ curl http://central.maven.org/maven2/com/google/api/grpc/proto-google-common-protos/1.0.0/proto-google-common-protos-1.0.0.jar | sha1sum
2017-12-19 15:44:16 -08:00
Carl Mastrangelo 172b2d36be
core: add a service config file 2017-12-19 12:33:27 -08:00
Carl Mastrangelo 6eaae5d081
core/grpclb: resolve TXT records in DNS name resolver and include balancer addresses 2017-12-19 10:01:53 -08:00
Kun Zhang 04420dfdf7
Start 1.10.0 development cycle (#3877) 2017-12-18 10:28:02 -08:00
zpencer 9358fc7233
core: BinaryLogProvider should not use ManagedChannelImpl class loader (#3874) 2017-12-18 10:26:26 -08:00
zpencer 39c266cbe7
core: introduce io.grpc.internal.BinaryLogProvider (#3872) 2017-12-17 16:47:33 -08:00