Commit Graph

4217 Commits

Author SHA1 Message Date
rmstar eae902594b
Merge pull request #19855 from Tony1023/bazel_objc_tests
Added Bazel BUILD for ObjC Tests and Examples
2019-08-15 16:11:06 -07:00
Tony Lu f037eac0a9 Small fixes 2019-08-15 13:37:14 -07:00
Prashant Jaikumar 141c2d24d1 Add support for running C++ tests on iOS 2019-08-14 20:44:22 -07:00
Juanli Shen 58aca9a2be
Merge pull request #19858 from AspirinSJL/locality_map_test
Add tests for xds locality map
2019-08-13 13:13:55 -07:00
Juanli Shen 6a16ddfa2d
Merge pull request #19922 from AspirinSJL/rm_notify_done
Remove unnecessary notification
2019-08-13 12:17:45 -07:00
rmstar 42b05bf190
Merge pull request #19838 from rmstar/time_change_flakes
Fixed time_change_test flakes
2019-08-13 11:02:18 -07:00
Tony Lu 1d98106847 Renaming the correct files 2019-08-13 10:45:52 -07:00
Juanli Shen 3c28c5f068 Remove unnecessary notification 2019-08-12 23:11:32 -07:00
rmstar 36aa4ffa8a
Merge pull request #19820 from rmstar/cronet_deadline
Send RPC deadline to server in cronet header
2019-08-12 21:50:47 -07:00
Juanli Shen 8d101f1071 Wait longer before sending the drop update 2019-08-12 12:43:18 -07:00
Juanli Shen 1c9fb855d7 Add locality map tests 2019-08-11 19:12:47 -07:00
Juanli Shen 1291ece848 Add drop in xds policy 2019-08-09 23:26:45 -07:00
Tony Lu 422a7773ae Replace making protoc and plugins with bazel build
Fixed templates and plugin-tests
2019-08-09 14:16:26 -07:00
Juanli Shen 45dd8be442 Use LRS in xds policy 2019-08-09 12:08:32 -07:00
Tony Lu d2ce6e707c Isolated test-specific build steps so that unrelated tasks don't run them
Move interop making back to run_tests.py
2019-08-08 13:11:58 -07:00
Juanli Shen 79f191114e Use EDS in xds LB policy 2019-08-07 22:43:45 -07:00
Esun Kim c6b0bd08c7 Updated grpclb to use upb 2019-08-07 13:25:49 -07:00
Prashant Jaikumar e2ebdc794d Fixed time_change_test flakes 2019-08-02 15:06:13 -07:00
Yash Tibrewal e6756a58ed
Merge pull request #19316 from yashykt/delegating_channel
Add Delegating Channel
2019-08-02 12:08:10 -07:00
Yash Tibrewal 3653439ba6 Merge master and move to experimental 2019-08-01 16:15:31 -07:00
Prashant Jaikumar e9d81fb0f2 Send RPC deadline to server in cronet header 2019-08-01 15:08:26 -07:00
hcaseyal 799c9717f7
Merge pull request #19783 from hcaseyal/channelz_readable_names
Add human-readable names for channelz sockets and listen sockets
2019-07-31 12:00:50 -07:00
Arjun Roy 557446a11e Added specializations for grpc_mdelem_create.
In several cases, we create grpc mdelem structures using known-static
metadata inputs. Furthermore, in several cases we create a slice on
the heap (e.g. grpc_slice_from_copied_buffer) where we know we are
transferring refcount ownership. In several cases, then, we can:

1) Avoid unnecessary ref/unref operations that are no-ops (for static
   slices) or superfluous (if we're transferring ownership).
2) Avoid unnecessarily comprehensive calls to grpc_slice_eq (since
   they'd only be called with static or interned slice arguments,
   which by construction would have equal refcounts if they were
   in fact equal.
3) Avoid unnecessary checks to see if a slice is interned (when we
   know that they are).

To avoid polluting the internal API, we introduce the notion of
strongly-typed grpc_slice objects. We draw a distinction between
Internal (interned and static-storage) slices and Extern (inline and
non-statically allocated). We introduce overloads to
grpc_mdelem_create() and grpc_mdelem_from_slices() for the fastpath
cases identified above based on these slice types.

From the programmer's point of view, though, nothing changes - they
need only use grpc_mdelem_create() and grpc_mdelem_from_slices() as
before, and the appropriate fastpath will be picked based on type
inference. If no special knowledge exists for the slice type (i.e. we
pass in generic grpc_slice objects), the slowpath method will still
always return correct behaviour.

This is good for:
- Roughly 1-3% reduction in CPU time for several unary/streaming
  ping pong fullstack microbenchmarks.
- Reduction of about 15-20% in CPU time for some hpack parser
  microbenchmarks.
- 10-12% reduction of CPU time for metadata microbenchmarks involving
  interned slice comparisons.
2019-07-30 17:07:44 -07:00
Hope Casey-Allen bd8a04a6e9 Add human-readable names for channelz sockets and listen sockets 2019-07-30 15:53:46 -07:00
yunjiaw26 f14f1dd61d
Merge pull request #19695 from yunjiaw26/bm_threadpool
Add threadpool benchmark and build files
2019-07-29 18:38:22 -07:00
Yunjia Wang 8318e578db SpikyLoad: construct outside 2019-07-29 10:52:32 -07:00
Prashant Jaikumar 232725b99a Add C++ Cronet end2end tests 2019-07-29 10:48:35 -07:00
Yunjia Wang c3c24d089d Use Template 2019-07-29 10:30:09 -07:00
Srini Polavarapu 71b86f0e71
Merge pull request #19659 from ascherkus/master
Document --noremotedb flag for grpc_cli.
2019-07-25 20:08:40 -07:00
Mark D. Roth e54f788ec4
Merge pull request #19719 from markdroth/grpc_channel_init
Second attempt: Defer grpc shutdown until after channel destruction.
2019-07-24 15:30:22 -07:00
Yunjia Wang d87b5285ca Fix comment 2019-07-24 13:33:24 -07:00
Qiancheng Zhao 29480c4f6b add client idle filter 2019-07-24 10:04:41 -07:00
Yunjia Wang efd6946d21 Reformat 2019-07-23 15:35:50 -07:00
Yunjia Wang 9242fe122d AddSelf more scenarios 2019-07-23 09:47:26 -07:00
Mark D. Roth 46f706c99b Revert "Merge pull request #19686 from gnossen/revert_breakage"
This reverts commit 1f2398b0d5, reversing
changes made to 99169d811c.
2019-07-23 07:50:27 -07:00
Yunjia Wang 8278d3e6a5 Resolving comments 2019-07-22 17:24:09 -07:00
Moiz Haidry da85cec0f2 Add condition to avoid duplicate shutdown 2019-07-19 14:19:23 -07:00
Moiz Haidry f4b1182a10 Addressed review comments 2019-07-19 13:48:35 -07:00
Moiz Haidry 7e2c5845e1 Merge branch 'master' of https://github.com/grpc/grpc into fix_mutex 2019-07-19 12:29:31 -07:00
Yunjia Wang 847faf407f Removes unused variable error 2019-07-19 12:10:52 -07:00
Moiz Haidry 6d984166bd Porting Aaron Jacob's unit test that detecting the race 2019-07-19 11:45:33 -07:00
Yunjia Wang 85314b3fcc Re-format 2019-07-19 10:49:35 -07:00
Yunjia Wang c6bc2b1875 Add threadpool benchmark and build files 2019-07-19 10:23:22 -07:00
Karthik Ravi Shankar f1fc64274a
Merge pull request #19406 from karthikravis/callback-offload-only-not-bg-poller
Run callbacks on same thread if trigerred from background thread
2019-07-19 09:39:07 -07:00
Karthik Ravi Shankar 553eff9cb0 Fix a test failure due to unused variable and formatting 2019-07-18 14:03:19 -07:00
Karthik Ravi Shankar 7461407ad0 Merge branch 'master' into callback-offload-only-not-bg-poller 2019-07-18 14:00:02 -07:00
Richard Belleville 63b4f3d819 Revert "Merge pull request #19673 from markdroth/channel_grpc_init"
This reverts commit 4e21980716, reversing
changes made to 62b8a783fa.
2019-07-18 13:00:24 -07:00
Mark D. Roth 8cc5b8f680 Defer grpc shutdown until after channel destruction. 2019-07-17 16:35:14 -07:00
Andrew Scherkus 4bf0048194 Document --noremotedb flag for grpc_cli.
It's surprising that grpc_cli always attempts to use the reflection
service even when providing local proto files. Document the
existence of a flag that surpresses this behavior.
2019-07-16 13:14:28 -04:00
Alexander Polcyn 3afb0b2635 Fix fallback test breaking on mac bazel 2019-07-15 18:43:01 -07:00