ZHANG Dapeng
9a06c4eb0e
testing: favor voidMethod and deprecate noopMethod
2017-11-01 09:36:24 -07:00
Eric Gribkoff
e1fd615df8
SECURITY.md: provider must be installed before channel creation
2017-10-31 16:22:07 -07:00
Carl Mastrangelo
87c8791983
compiler: remove references to static fields
2017-10-31 15:24:48 -07:00
Eric Gribkoff
ee503720b8
android-interop-testing: fix proguard for grpc-testing dependency
2017-10-31 10:52:58 -07:00
Carl Mastrangelo
8f88cb82f2
netty: include rst stream message in Status
2017-10-31 10:49:25 -07:00
Eric Anderson
46b2ce1922
Upgrade to Gradle 4.3
...
While this fixes a Gradle-caused failure on Java 9, it is still failing
due to Generated annotations as seen in #3633 .
Fixes #3632
2017-10-30 15:38:52 -07:00
Carl Mastrangelo
30b59885b7
compiler: add methods for accessing method descriptors
...
* MethodDescriptor is lazy loaded, so protobuf loading only happens on demand. This also means tracing registration happens on demand.
* The names of the getters all being with `method`. This makes it harder for autocomplete to pick them up.
* A new field is used, which matches the getter name. Rather than make the new-getters reference the old-fields, make the old-fields reference the new getters. This makes removal of the old-fields a simple operation.
* The getters may not be inlineable, but thats an easy fix if it ends up being a problem. Not worth premature optimization (but is worth future work).
The expected timeline for this is adding this to the 1.8 cut, and deprecating the old-fields. They will be removed in 1.9.
2017-10-30 10:30:34 -07:00
zpencer
53c135a48f
buildscripts: set -u, set -o pipefail ( #3629 )
...
Be even more defensive with our shell scripts, to avoid future mistakes.
2017-10-27 15:31:30 -07:00
Eric Anderson
733f5ac665
testing: Use StringBuilder instead of StringBuffer
...
We don't need the synchronization StringBuffer provides
2017-10-27 15:29:51 -07:00
zpencer
5856a932c3
netty: separate connection log ( #3591 )
...
Move netty connection log info to a separate logger:
io.grpc.netty.NettyServerTransport.connections
Users can redirect or disable this log using the usual way:
-Djava.util.logging.config.file="logging.properties"
2017-10-27 13:15:49 -07:00
zpencer
d840227165
buildscripts: make the script fail for the right reason when using set -e ( #3628 )
2017-10-27 08:54:08 -07:00
Eric Anderson
bbe81d0870
travis: Remove OS X build
...
With #3608 Kokoro is now able to handle OS X. I'm not removing the
OS X-specific parts of the .travis.yml in case we need to revert back to
using Travis.
Fixes #3466
2017-10-26 15:23:07 -07:00
zpencer
8970c3a7c1
kokoro: port .travis.yaml to kokoro for mac osx ( #3608 )
2017-10-26 14:26:35 -07:00
Michael Vorburger
b5d93850e7
Replace IntelliJ IDEA specific sourceDirs with sourceSets
...
The sourceSets also works with Eclipse, and presumably other IDEs (OOB).
see also https://github.com/google/protobuf-gradle-plugin/issues/109
2017-10-26 13:35:14 -07:00
ZHANG Dapeng
7a4aa47070
core: remove unnecessary type params in ServerStreamTracer
2017-10-26 12:05:41 -07:00
ZHANG Dapeng
071942dc3b
core: fix a race in InProcessTransport
...
Resolves #3571
2017-10-26 09:32:41 -07:00
zpencer
255643bed9
context: Make CancellableContext implement Closeable ( #3607 )
2017-10-25 11:17:44 -07:00
ZHANG Dapeng
c90f27f454
stub: add withExecutor API
2017-10-24 14:00:45 -07:00
zpencer
fedef8f866
SECURITY: tcnative version should be 2.0.6.Final ( #3611 )
2017-10-24 13:29:18 -07:00
Eric Anderson
0ef9ec6275
core: Fix naming style of string constants
2017-10-24 11:48:17 -07:00
Eric Anderson
a83fe7bf96
core: Use literal host:port instead of computing
...
Using HostAndPort just complicates the code. HostAndPort is also @Beta,
which is generally fine to use in tests, but is needless here.
2017-10-24 11:47:46 -07:00
zpencer
2eb47eaab7
kokoro: Initial config files for macos ( #3599 )
2017-10-23 16:10:11 -07:00
Eric Anderson
8016a1f0e5
core: Add port to proxy URL for Authenticator
...
Otherwise the scheme (https) is used to determine the port.
2017-10-20 13:50:50 -07:00
Eric Anderson
698ba803d5
Move ProxyDetectorImplTest to core.
...
It should never have been in okhttp.
2017-10-20 13:49:54 -07:00
zpencer
11272f4780
kokoro: add a placeholder script for GAE testing ( #3590 )
2017-10-19 16:26:52 -07:00
Carl Mastrangelo
0ffe759bec
core: add since tags for LoadBalancer and NameResolver
2017-10-19 15:21:54 -07:00
zpencer
976bda8f6e
cronet: add ProxyParam arg to CronetTransportFactory ( #3589 )
2017-10-19 08:55:56 -07:00
Kun Zhang
04f4065a63
core: refresh name resolution when an OOB connection is closed. ( #3588 )
...
This is required by an internal use case. We have already been doing
so for Subchannels.
2017-10-18 15:31:19 -07:00
zpencer
ab0aadf8a7
stub: add missing bazel dep @com_google_errorprone_error_prone_annotations//jar ( #3584 )
2017-10-18 14:18:53 -07:00
zpencer
7df9ae9753
core,netty,okhttp: detect proxy via ProxySelector ( #3021 )
...
This lets us specify the proxy using `-Dhttps.proxyHost=host -Dhttps.proxyPort=port`
along with auth info like username and password.
2017-10-17 19:26:11 -07:00
Carl Mastrangelo
b9f6590084
all: update to hdr histograms 2.1.10
2017-10-17 17:03:12 -07:00
Carl Mastrangelo
8187f1e784
util: improve scalability of RR load balancer
...
In relative order of importance:
* Don't acquire lock when picking subchannel.
* Use O(1) lookup for updating channel state
* Use non synchronized ref instead of AtomicReference
* Dont store size in picker.
* make class final
* remove test that was not valid
2017-10-16 17:43:40 -07:00
Sudharaka Palamakumbura
b2bcaccb34
Fix typo in SECURITY.md
2017-10-13 19:35:24 -07:00
Kun Zhang
9c817e5bb0
interop-test: disable message size check in interop-test client. ( #3569 )
...
The check fails in Java-Go interop test because of
grpc/grpc-go#1572
This is also needed for the internal gRPC-GFE test.
Resolves #3562
2017-10-12 17:14:16 -07:00
Carl Mastrangelo
1c7421be78
core: Remove deprecated load balancer and name resolver APIs
2017-10-12 15:53:31 -07:00
dapengzhang0
21be70dbe3
Update README to reference 1.7.0
2017-10-11 21:31:49 -07:00
Kun Zhang
eae4569e16
core: do not call LoadBalancer callbacks after it's shut down. ( #3573 )
...
This behavior is documented in the javadoc of LoadBalancer.shutdown().
2017-10-11 16:46:36 -07:00
Eric Gribkoff
d63711e8bc
cronet: make CronetChannelBuilder final
2017-10-11 15:52:01 -07:00
Kun Zhang
18ba417241
core: add drop to hashCode() and equals() for PickResult ( #3570 )
2017-10-11 13:54:16 -07:00
Kun Zhang
1e02b65c08
Fix interop_test client.
2017-10-10 13:46:51 -07:00
Kun Zhang
61d5baa5f2
core: fix build in CensusStatsModule.
2017-10-09 15:47:57 -07:00
Kun Zhang
8edead0851
core: make in-process transport support StreamTracer
...
This is needed for both completeness and stats/tracing contexts propagation.
Stats recording with Census is intentionally disabled (#2284 ), while the rest of the Census-related logic work the same as on the other transports.
2017-10-09 10:14:36 -07:00
Carl Mastrangelo
95a2723ea5
core,grpclb: use denser atomics for census
2017-10-06 17:02:36 -07:00
Kun Zhang
72f6d9bc08
core: add first-class drop support in LoadBalancer.
...
Resolves #3355
GrpclbLoadBalancer should use PickResult.withDrop() instead of PickResult.withError() when dropping RPCs.
2017-10-06 16:23:10 -07:00
Carl Mastrangelo
291f17059e
core: allow attributes to be built multiple times
2017-10-06 16:16:01 -07:00
Eric Anderson
401066ada3
RELEASING.md: Split out release branch; tweak
2017-10-06 14:02:29 -07:00
Eric Anderson
ac63eabe60
gae-interop-testing: Remove gradle wrappers
...
Since the projects are placed in the root settings.gradle, they are subprojects
and don't need their own gradlew. In addition, the gradle version used here is
a different version than elsewhere, which is asking for confusion.
2017-10-06 14:01:38 -07:00
Eric Gribkoff
4d67c3d63f
cronet: open-source experimental Cronet transport code
2017-10-06 11:18:03 -07:00
zpencer
b07c70a09f
gae-interop-testing: add GAE interop tests ( #3535 )
...
See `gae-interop-testing/README.md` for details on how to run the tests.
2017-10-06 10:44:58 -07:00
ZHANG Dapeng
80ac407c6c
interop-testing: fix ErrorProne and Unused
2017-10-05 14:15:43 -07:00