Commit Graph

541 Commits

Author SHA1 Message Date
Vijay Pai 6124a835d4 Revert "Hide ConnectedSubchannel from LB policy API." 2019-06-18 10:37:15 -07:00
Mark D. Roth 7767fbe683 Hide ConnectedSubchannel from LB policy API. 2019-06-12 06:44:36 -07:00
Mark D. Roth cfb31818ef Remove channelz from LB policy API. 2019-06-07 07:09:39 -07:00
Mark D. Roth 28ccd61cf5 Use SubchannelInterface to hide implementation from LB policy API. 2019-05-29 12:21:15 -07:00
Mark D. Roth 31ec9a74ae More LB policy API improvements. 2019-05-28 14:23:01 -07:00
Prashant Jaikumar 1ac1ab7396 Flaky network test enhancements and cleanups
- Parameterized flaky_network_test to run with different packet sizes and
credentials.
- Cleanup debugger_macros

Parametrize flaky_network_test to run with different packet sizes and
credentials.
2019-05-23 11:45:54 -07:00
Yang Gao c9bd2adb52
Merge pull request #19069 from yang-g/test_tcp_server
Add an early flush so that the shutdown callback does not have to wait for deadline expiration
2019-05-21 08:46:10 -07:00
Esun Kim 90fbdc92f5 Roll-forward "Config migration"
This reverts commit 236ae12bb1.
2019-05-20 15:47:24 -07:00
yang-g d22997e1ea Add back deadline 2019-05-20 10:22:30 -07:00
yang-g 557a3e578d Remove 5s deadline on test server shutdown 2019-05-20 10:19:49 -07:00
Alexander Polcyn 236ae12bb1 Revert "Config migration"
This reverts commit 87905ae5ea.
2019-05-14 14:36:33 -07:00
Esun Kim 87905ae5ea Config migration 2019-05-09 12:29:38 -07:00
Alexander Polcyn d5fb6da369 Revert "Use aligned_alloc directly for grpc_core::Arena"
This reverts commit 333ba8feae.
2019-05-06 15:24:21 -07:00
Alexander Polcyn cb966a4e5e Revert "Renamed macros for memory alignment"
This reverts commit a3fe7c0c90.
2019-05-06 15:24:09 -07:00
Arjun Roy a3fe7c0c90 Renamed macros for memory alignment 2019-04-29 15:38:41 -07:00
Arjun Roy 333ba8feae Use aligned_alloc directly for grpc_core::Arena 2019-04-29 15:37:17 -07:00
yang-g 5e7e494638 Use milliseconds for test_server timeout 2019-04-29 12:26:50 -07:00
yang-g 37783d6329 Stop calling ParseCommandLineFlags directly, use wrapper call instead 2019-04-24 10:09:39 -07:00
Mark D. Roth 63777c714f
Merge pull request #18628 from markdroth/remove_error_from_connectivity_state_tracker
Remove error from connectivity state tracking.
2019-04-15 14:05:25 -07:00
Mark D. Roth 432c97e1ba Remove error from connectivity state tracking. 2019-04-15 13:14:19 -07:00
Bill Feng df89d8e157 bazel RBE Windows build 2019-04-05 11:40:11 -07:00
Moiz Haidry ba00d3c914 Added a locality map class that maintains a child policy per locality. This is used by the xds lb policy to manage multiple localities. Also added a grpc_core::Map which is a templatized map, that is used by the locality map to maintain this info 2019-03-29 12:50:54 -07:00
Mark D. Roth 206592ce9c Restructure how addresses and service config are passed from resolver to LB policy. 2019-03-26 11:57:21 -07:00
Mark D. Roth d069bc7721 LB policy API cleanup 2019-03-14 12:19:09 -07:00
Soheil Hassas Yeganeh 0031393a17
Merge pull request #18240 from soheilhy/tcp-inq
Implement TCP_INQ for gRPC in Linux
2019-03-08 11:29:39 -05:00
Yash Tibrewal abcd5861eb Nuking the poll-cv polling engine 2019-03-07 14:49:24 -08:00
Soheil Hassas Yeganeh 18b19105f2 Implement TCP_INQ for gRPC in Linux
TCP_INQ is a socket option we added to Linux to report pending bytes
on the socket as a control message.

Using TCP_INQ we can accurately decide whether to continue read or not.
Add an urgent parameter, when we do not want to wait for EPOLLIN.

This commit improves the latency of 1 RPC unary (minimal benchmark)
significantly:

  Before:
    l_50: 61.3584984733
    l_90: 94.8328711277
    l_99: 126.211351174
    l_999: 158.722406029

  After:
    l_50: 51.3546011488 (-16%)
    l_90: 72.3420731581 (-23%)
    l_99: 103.280218974 (-18%)
    l_999: 130.905689996 (-17%)
2019-03-06 22:15:53 -05:00
Mark D. Roth 251d66aac6 Convert client channel factory to C++ 2019-03-01 08:40:21 -08:00
yang-g 456f748b2f Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
This reverts commit 9079e98dfc, reversing
changes made to 76a38bfcc2.
2019-02-25 10:11:06 -08:00
Mark D. Roth c9aebe3880
Merge pull request #18081 from markdroth/service_config_ref_counted
Make service config ref-counted and hold refs to it in LB config.
2019-02-25 07:32:12 -08:00
Yang Gao 4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread" 2019-02-22 16:34:24 -08:00
Mark D. Roth e40177fad0 Make service config ref-counted and hold refs to it in LB config. 2019-02-22 16:33:50 -08:00
Mark D. Roth 5f00cfd3bd
Merge pull request #18096 from markdroth/lb_policy_api
Second attempt: LB policy picker API
2019-02-22 10:10:43 -08:00
Mark D. Roth 624fb64f61 LB policy ctors no longer perform updates; UpdateLocked() must be called
after construction.
2019-02-21 14:01:22 -08:00
yang-g fe3555f0fd Merge with head and resolve conflict 2019-02-19 20:46:51 -08:00
Mark D. Roth aa149fedbb Revert "Merge pull request #18093 from grpc/revert-17770-lb_policy_picker_api"
This reverts commit f327b83706, reversing
changes made to b3b5d63423.
2019-02-19 13:19:24 -08:00
hcaseyal 275296c594
Revert "LB policy picker API" 2019-02-19 11:05:52 -08:00
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
xtao 902820a5de
1) fix the asan tests caught leaks;
2) fix the tsan tests caught data races;
2019-02-16 00:00:50 +08:00
yang-g 545c555d31 Rename new public API 2019-02-14 14:22:40 -08:00
yang-g 684643ff0a Test fixing php 2019-02-13 11:02:48 -08:00
Mark D. Roth bab8123763 LB policy picker API 2019-02-13 08:30:04 -08:00
yang-g bc946d6c6d merge with head and resolve conflicts 2019-02-12 15:00:32 -08:00
Yash Tibrewal ff72f3eeff Skip the test instead 2019-02-07 14:57:58 -08:00
Nicolas Noble 9abc673def
Restore gsec* suppressions
These aren't from BoringSSL
2019-02-05 13:00:33 -08:00
Nicolas Noble 510fba2deb
Removing BoringSSL-specific ubsan suppressions.
Let's see if #17791 is really fixed.
2019-02-05 11:07:19 -08:00
Juanli Shen 4f3c1572e1
Revert "Revert "C++-ify subchannel"" 2019-01-30 10:23:07 -08:00
Juanli Shen bbfc024a02
Revert "C++-ify subchannel" 2019-01-29 15:23:55 -08:00
Juanli Shen 25dc2ffed6 C++-ify subchannel 2019-01-29 13:00:02 -08:00
Mark D. Roth f99bd8c08a Pass LB policy args as non-const and using std::move(). 2019-01-23 08:47:46 -08:00