Commit Graph

2084 Commits

Author SHA1 Message Date
Eric Gribkoff f52b4c1443 okhttp: ignore unknown HTTP/2 settings 2017-05-30 09:23:53 -07:00
Carl Mastrangelo ee38b3754e core: remove 2 suffix from streams 2017-05-26 16:59:54 -07:00
Carl Mastrangelo 7b821a0e50 netty: increase message quantum
This is a minor change setting the size of data frames sent when
interleaving RPCs.  The size was ~1024bytes previously, which
resulted in the `writev` syscalls sending many smaller chunks
before hitting the low water mark.  The end effect is larger calls
to `writev`, as seen with strace.

The effect of this is noticeable when sending a lot of data.  When
sending as many 1MB messages as possible it nearly doubles the
rate.

Before:

```
INFO: single throughput GRPC
50.0%ile Latency (in nanos):		280856575
90.0%ile Latency (in nanos):		349618175
95.0%ile Latency (in nanos):		380444671
99.0%ile Latency (in nanos):		455172095
99.9%ile Latency (in nanos):		537198591
100.0%ile Latency (in nanos):		566886399
QPS:                           346
Count:                         103984
```

After:
```
gRPC
50.0%ile Latency (in nanos):		125948927
90.0%ile Latency (in nanos):		166322175
95.0%ile Latency (in nanos):		177276927
99.0%ile Latency (in nanos):		193840127
99.9%ile Latency (in nanos):		226841599
100.0%ile Latency (in nanos):		256110591
QPS:                           774
Count:                         232340
```
2017-05-26 16:08:26 -07:00
William Thurston 6760bfec8a Log deadline narrowing events at FINE instead of INFO. 2017-05-26 15:28:34 -07:00
Carl Mastrangelo ecbacf0856 all: fix bad ref to ServerCall 2017-05-26 14:27:53 -07:00
Eric Anderson cefcd39396 Fix incorrect assertEquals argument ordering
The expected value should be first.
2017-05-24 08:47:02 -07:00
Carl Mastrangelo 4ce52d10f6 all: bump to 1.5.0-SNAPSHOT 2017-05-23 17:57:25 -07:00
Carl Mastrangelo 0fe2c5cca6 all: bump to proto 3.3.1 2017-05-23 17:04:51 -07:00
Bogdan Drutu 530b714790 core/tracing: set always record events option for the RPC spans. (#2998) 2017-05-23 15:10:36 -07:00
Kun Zhang fae55a67a0 core: delete deprecated affinity API. (#3026)
Deprecated since 1.3.0
Resolves #1766
2017-05-19 15:04:40 -07:00
Eric Anderson 4fe3660389 testing: Add missing RunWith to GrpcServerRuleTest 2017-05-18 11:07:25 -07:00
zpencer 347eb09d92 all: Minor updates to expand javadocs (#2991)
all: Minor updates to expand javadocs
2017-05-17 17:12:45 -07:00
ZHANG Dapeng 66ebcb1b00 doc: generate use page in javadoc 2017-05-17 08:52:07 -07:00
Eric Gribkoff 5dc8a124bf interop-testing,okhttp,testing: update tests to pass with ipv6 2017-05-16 17:01:05 -07:00
Carl Mastrangelo 7be1720fce core: don't expose internal Metadata.headerCount 2017-05-15 18:33:10 -07:00
Eric Anderson a343e99252 grpclb: Avoid reference equality for protobuf in oneof
The equivalent of the has* methods for oneofs is to check which Case()
is used. Reworked the code a bit because it seemed obvious that it
wasn't checking all the cases it should, and is probably more natural
now that the code uses Case().
2017-05-15 15:39:49 -07:00
Eric Anderson 3fc8163fbd okhttp: Make implicit cast explicit to declare it safe 2017-05-15 15:39:49 -07:00
Eric Anderson cf0e161bd6 Remove unused variables
The removal of the poll()s is a behavior change, but the tests weren't
needing to call it.
2017-05-15 15:39:49 -07:00
Łukasz Strzałkowski 67eefa69b4 Upgrade to netty and netty-tcnative
* Upgrade netty to 4.1.11.Final
  * Upgrade netty-tcnative to 2.0.1.Final
  * Remove `FixedHttp2ConnectionDecoder` as it's no longer needed
  * Use new, extensible `DefaultHttp2HeadersDecoder` for custom headers handling
2017-05-15 10:57:43 -07:00
Eric Anderson eb6acfe186 Javadoc improvements, especially to Context 2017-05-15 10:12:44 -07:00
kenji yoshida 17b74c1452 protobuf-lite: fix typo. s/Marhsaller/Marshaller 2017-05-14 14:19:47 -07:00
ZHANG Dapeng 28ad3ba335 netty: fix server keepalive not initialized bug
fixes #2982
2017-05-12 09:05:21 -07:00
Carl Mastrangelo 870dd50eb2 core: clarify more origin docs for Channel 2017-05-11 17:39:30 -07:00
Carl Mastrangelo 90559c7f0a core: add Since java doc annotations to Server, and clarify return types 2017-05-11 10:10:01 -07:00
ZHANG Dapeng 9954c5fe90 services: HealthStatusManager not to expose server stub methods
`HealthStatusManager` should not expose server stub methods, because it is wrong to call server stub methods directly.
2017-05-10 14:06:13 -07:00
ZHANG Dapeng bb978bac31 doc: initiate some package javadoc
Initated package javadoc for 
* `io.grpc.stub`, 
* `io.grpc.auth`, 
* `io.grpc.util`, 
* `io.grpc.protobuf`, 
* `io.grpc.protobuf.lite`,
* `io.grpc.protobuf.nano`
2017-05-10 11:29:07 -07:00
Eric Anderson f4173c34ad core,grpclb: Update addresses in OobChannel
This allows avoiding re-creating connections unnecessarily. For
NameResolvers that support notifications this avoids stampeding herds
when possible, since all clients may receive the notification at
approximately the same time.
2017-05-09 12:35:00 -07:00
Eric Anderson 30b61dbf4d core: Update addresses in Subchannel
This allows avoiding re-creating connections unnecessarily. For
NameResolvers that support notifications this avoids stampeding herds
when possible, since all clients may receive the notification at
approximately the same time.
2017-05-09 12:35:00 -07:00
Carl Mastrangelo 1f7c9d5716 core: document ServerBuilder return values and method history
Also, remove an erroneously added ExperimentalApi annotation.  The
method was non experimental as of the 1.0.0 release.
2017-05-05 10:34:10 -07:00
ZHANG Dapeng 5891c963e2 doc: fix broken links 2017-05-05 09:03:48 -07:00
Muxi Yan f674776a6c Add/Fix some docs (#2970)
* Add/Fix some docs

* Address comments

* Address comments

* Address comments

* Add remarks

* Build fixes

* Revision

* More revision
2017-05-04 10:57:49 -07:00
ZHANG Dapeng 7d048af68e javadoc: fix broken links in javadoc 2017-05-02 16:21:43 -07:00
Eric Anderson 6418371df5 android-helloworld: Remove usage of ActionBarActivity
ActionBarActivity has been deprecated for 2+ years and has been
extending AppCompatActivity for all that time. This should be a no-op.
2017-05-02 11:30:24 -07:00
Eric Anderson e6804e2a45 android-helloworld: Ignore proguard warnings for javax.naming
I have no clue why this isn't needed for routeguide as well, but
routeguide is compiling fine without the dontwarn.
2017-05-02 11:30:01 -07:00
Eric Gribkoff 7aa807ce6d compiler: remove streaming calls from javadoc for newFutureStub
FutureStubs only support unary calls
2017-05-02 10:24:23 -07:00
Carl Mastrangelo 06e823e251 netty: reduce severity of disconnect message 2017-05-02 09:51:22 -07:00
Eric Gribkoff df69485f44 build,protobuf: update google_api_protos dependency 2017-05-01 14:43:53 -07:00
Carl Mastrangelo 8dc29f91bb all: bump recommended gRPC and Proto to 1.3.0 and 3.2.0 2017-04-28 13:36:21 -07:00
Xiao Hang 50a92e01dc android-interop-testing: Support get option in interop app 2017-04-27 14:33:47 -07:00
zpencer a317912a14 Channel.authority() should return the value of overrideAuthority (#2956)
AbstractManagedChannelImplBuilder accepts an overrideAuthority parameter, but this value is not hooked up to the name resolver object. Ultimately, Channel.authority consults with the NameResolver, so the overrideAuthority should be hooked into the NameResolverFactory, while all other functionality should be preserved.

Also, add unit tests for all the variants of OkHttpChannelBuilder and NettyChannelBuilder constructors, namely to test the slightly different NettyChannelBuilder(SocketAddress) code path.

Fixes #2682
2017-04-27 14:17:38 -07:00
ZHANG Dapeng b2b6745868 stub: rm redundant call field in StreamObserverToCallListenerAdapter
All that the `call` field was used for was to call `request` and nothing else. The `request` can be done by the `adapter` field, so the `call` field is redundant.
2017-04-27 13:10:53 -07:00
Kun Zhang 0d6b4184d1 Implement GRPCLB client-side load reporting (#2941)
Also updated load_balancing.proto to the latest version.
2017-04-27 11:28:28 -07:00
Eric Anderson 982541bccc build: fix -PerrorProne=false
It previously failed because of the errorprone dependency and the -Xep:
arguments passed to javac
2017-04-26 16:38:54 -07:00
Xiao Hang de0df9740a okhttp: Support GET in okhttp transport 2017-04-26 14:11:32 -07:00
Eric Anderson dcc3902eb4 grpclb: remove non-determinism workaround
Issue #2444 is resolved.
2017-04-26 13:35:22 -07:00
Kun Zhang be74e97b5d core: stop using static flags for Census control. (#2947)
Static mutable flags are evil.  Turned them to options on channel
builder.  Also restore the local stats recording by default, because
these flags were added with the concern of wire-compatibility, but not
local feature.
2017-04-26 10:50:55 -07:00
Kun Zhang c1a2fb412a grpclb: expose the token metadata key. (#2944)
It is accessed by the server-side load-reporting code which is from a
different package.
2017-04-25 15:17:26 -07:00
Kun Zhang 49bde5494b core: integrate instrumentation-java (Census) tracing (#2938)
Main implementation is in CensusTracingModule.

Also a few fix-ups in the stats implementation CensusStatsModule:

- Change header key name from grpc-census-bin to grpc-tags-bin
- Server does not fail on header parse errors. Uses the default instead.

Protect Census-based stats and tracing with static flags: `GrpcUtil.enableCensusStats` and `GrpcUtil.enableCensusTracing`. They keep those features disabled by default until they, especially their wire formats, are stabilized.
2017-04-25 13:53:29 -07:00
Fred Wulff ba1c4bf4ac core: Add support for the AppEngine development sandbox 2017-04-24 11:15:58 -07:00
Eric Gribkoff b6bf252566 interop-testing: add cacheable_unary test 2017-04-21 10:22:05 -07:00