AJ Heller
25d91e3091
New iomgr implementation backed by the EventEngine API ( #26026 )
...
This code adds an iomgr implementation that's backed by an EventEngine. This uses the EventEngine API alone, and separate work will introduce an EventEngine prototype to plug into it.
See also drfloob#1: @nicolasnoble has a pull request against this branch, implementing the libuv-based EventEngine. One goal here is to implement the iomgr code such that it can be merged independently without affecting normal builds.
This implementation can be built using bazel build --cxxopt='-DGRPC_USE_EVENT_ENGINE' :all
Some shortcuts are being taken to get a working, testable version of the engine. EventEngines are not pluggable, for example.
2021-06-18 12:30:09 -07:00
Mark D. Roth
4c40ee3f78
move parse_address and sockaddr_utils out of iomgr directory ( #26077 )
...
* move parse_address and sockaddr_utils out of iomgr directory
* clang-format
* fix python
* fix for import
* fix build file for import
2021-04-30 08:21:58 -07:00
Esun Kim
460898f11c
Migrated from grpc_error_string to grpc_error_std_string ( #26068 )
...
* Added grpc_error_std_string
* Migrated to grpc_error_std_string
2021-04-23 16:31:54 -07:00
Esun Kim
ca945a58e9
Introduced grpc_error_handle ( #25902 )
...
- Define grpc_error_handle
- Replace grpc_error* with grpc_error_handle
2021-04-22 12:00:28 -07:00
apolcyn
a98819007d
Revert "Convert grpc_ares_wrapper to C++ ( #25108 )" ( #25761 )
...
This reverts commit 2ee70175bd .
2021-03-18 21:55:14 -07:00
apolcyn
2ee70175bd
Convert grpc_ares_wrapper to C++ ( #25108 )
2021-03-17 13:47:29 -07:00
Yash Tibrewal
f4e55b85bc
Replace disrespectful term
2021-02-08 15:29:53 -08:00
yang-g
c6c3dc57af
Remove unneeded filter
2021-01-06 10:59:56 -08:00
apolcyn
78dc1394fd
Merge pull request #25064 from apolcyn/merge_ares_structs
...
Move grpc_ares_ev_driver and fd_node into grpc_ares_wrapper.cc
2021-01-06 10:32:44 -08:00
apolcyn
91f80720a3
Merge pull request #25069 from apolcyn/plumb_extra_args
...
Add a mechanism to plumb arbitary command line flags to the c-ares unit test binary
2021-01-05 14:39:31 -08:00
Alexander Polcyn
882243606f
Add a mechanism to plumb arbitary command line flags to the c-ares unit test binary
2020-12-28 23:22:54 -08:00
Alexander Polcyn
17a49209bc
Remove unnecessary signal-forwarding/timeout thread in c-ares unit test driver
2020-12-28 16:50:17 -08:00
Alexander Polcyn
8215b21dc1
move grpc_ares_ev_driver and fd_node definitions into grpc_ares_wrapper.cc
2020-12-28 11:51:16 -08:00
Alexander Polcyn
9480039754
Fix formatting
2020-12-16 11:00:51 -08:00
Alexander Polcyn
aef3bb0157
Remove unnecessary explicit bytes conversion
2020-12-16 10:17:17 -08:00
Alexander Polcyn
408a02379d
Make c-ares resolver unit tests runnable under python3
2020-12-15 23:51:19 -08:00
Jan Tattermusch
f18a02253f
remove Flaky=true flag for some tests
2020-12-15 08:55:00 +01:00
Esun Kim
2ff84ed8c2
C++ cast for void*
2020-11-30 17:29:15 -08:00
Esun Kim
ec0b88a5d7
Fix google-readability-casting
2020-11-30 17:27:51 -08:00
Esun Kim
75e3e660fd
Fix google-readability-todo
2020-11-25 10:09:42 -08:00
Lidi Zheng
5ea36eb47c
Revert "Revert "Resolve warnings and deprecations in several scripts in tools""
2020-11-17 16:30:26 -08:00
Jan Tattermusch
dcb3f8c73e
Revert "Resolve warnings and deprecations in several scripts in tools"
2020-11-16 16:21:28 +01:00
Lidi Zheng
76aade3eac
Resolve warnings and deprecations in several scripts in tools
2020-11-13 12:17:38 -08:00
capstan
131579d52d
Roll forward of commit 7883b51: Use abseil's flags in tests.
...
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493 .
This reverts commit da66b7d14e .
NEW:
* Adds references to `absl/flags/declare.h`, new to LTS 2020923.2 imported in commit 5b43440 .
* Works around MSVC 2017 compiler error with large help text on flags by reducing the help text.
2020-11-06 16:07:19 +01:00
Nathan Herring
da66b7d14e
Revert "Abseil Flags"
2020-10-24 15:19:55 -07:00
capstan
7883b5133d
Use abseil's flags in tests.
...
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493 .
2020-10-23 19:36:33 +02:00
Esun Kim
e37dab3b7f
Merge pull request #24483 from veblush/tidy-readability-redundant-control-flow
...
[Clang-Tidy] Enable readability-redundant-control-flow
2020-10-21 12:00:13 -07:00
Esun Kim
aae4f4cf18
Fix by misc-unused-using-decls
2020-10-19 18:12:11 -07:00
Esun Kim
9e8a13bb93
Fix by tidy-readability-redundant-control-flow
2020-10-19 17:03:35 -07:00
Esun Kim
6ae8463500
Fix by modernize-make-unique
2020-10-16 13:30:56 -07:00
Esun Kim
ece76ee1e8
Fix code by readability-container-size-empty
2020-10-16 09:48:20 -07:00
Esun Kim
c08f33c437
Fix clang-tidy errors
2020-10-15 16:07:25 -07:00
Esun Kim
8e9e895ffc
Replace grpc_shutdown_blocking with grpc_shutdown
2020-10-08 10:57:05 -07:00
Mark D. Roth
bd73844208
Move parse_address library from client_channel to iomgr.
2020-08-18 11:23:06 -07:00
Alexander Polcyn
e2837aa10b
Raise deadline of CancelDuringAresQuery.TestHitDeadlineAndDestroyChannelDuringAresResolutionWithQueryTimeoutIsGraceful test
2020-08-11 18:05:57 -07:00
Mark D. Roth
9404f66f70
Replace most uses of gpr_asprintf() with absl calls.
2020-07-07 12:01:02 -07:00
Jan Tattermusch
ec8be426bd
Merge pull request #23067 from jtattermusch/cancel_ares_query_test_flaky
...
Mark cancel_ares_query_test as flaky
2020-06-01 15:47:19 +02:00
Alexander Polcyn
2c133c562d
Fix sorting of gRPCLB addresses when resolved via DNS
2020-05-29 10:43:45 -07:00
Jan Tattermusch
f622a797d2
mark cancel_ares_query_test as flaky
2020-05-28 01:34:19 -04:00
Mark D. Roth
c769951764
Remove deprecated variant of JoinHostPort().
2020-05-08 09:13:26 -07:00
Mark D. Roth
d74548e611
Remove StringViewToCString() and src/core/lib/gprpp/string_view.h
2020-04-27 12:28:28 -07:00
Yash Tibrewal
00458b3851
Merge branch 'master' into uselogicalthread and address reviewer
...
comments
2020-04-13 23:26:14 -07:00
apolcyn
02b92dde35
Merge pull request #22528 from apolcyn/improve_cares_tracer
...
Include the request object in c-ares address sorting trace logs
2020-04-01 14:31:35 -07:00
Alexander Polcyn
292c07b432
Fix link error in address sorting test
2020-04-01 11:18:53 -07:00
Alexander Polcyn
aec6be5ec9
Include request object in c-ares address sorting trace logs
2020-04-01 00:05:03 +00:00
Mark D. Roth
03411d7be7
Second attempt: grpclb stabilization
2020-03-31 07:52:44 -07:00
Yash Tibrewal
a2df32e657
Merge branch 'master' into uselogicalthread
2020-03-25 20:57:31 -07:00
Mark D. Roth
d4fb5ea436
update service config parsing as per recent spec change
2020-03-25 10:45:41 -07:00
Esun Kim
b308241343
Fix clang-tidy issues
2020-03-03 12:27:41 -08:00
Yash Tibrewal
01e2017a71
Merge branch 'master' into uselogicalthread
2020-02-27 12:36:43 -08:00
Jan Tattermusch
41ac287f7b
generate build metadata from bazel BUILD
2020-02-26 19:56:49 -05:00
Yash Tibrewal
9ca286a48f
Replace LogicalThread with WorkSerializer
2020-02-07 16:14:33 -08:00
Yash Tibrewal
957f0390df
Reviewer comments
2020-02-06 15:28:13 -08:00
Yash Tibrewal
57638e0677
Merge branch 'master' into uselogicalthread
2020-02-04 16:20:08 -08:00
Mark D. Roth
283574e3b7
Convert service config code to use new JSON API
2020-02-04 07:42:31 -08:00
Jan Tattermusch
3f3cf8b62a
Revert "grpclb stabilization"
2020-01-20 14:11:16 +01:00
Mark D. Roth
7388c47c91
Merge pull request #20803 from markdroth/grpclb_stabilization
...
grpclb stabilization
2020-01-10 10:47:46 -08:00
Mark D. Roth
5b18402914
grpclb stabilization
2020-01-10 09:13:10 -08:00
Esun Kim
9ae81e1d3f
Make test code use TestEnvironment
2020-01-09 14:14:16 -08:00
Yash Tibrewal
c613162e1d
Merge branch 'master' into uselogicalthread
2020-01-09 12:47:18 -08:00
Esun Kim
e52081f903
More pythons to be formatted
2020-01-03 22:21:23 -08:00
Yash Tibrewal
e05417db32
Use LogicalThread in client channel code
2019-12-06 12:44:05 -08:00
Jan Tattermusch
f427cac49b
dont run resolver_component_tests_runner_invoker on mac
2019-11-25 13:35:26 +01:00
Alexander Polcyn
7cd0d9266b
Raise deadline of RPC in cancel_ares_query_test
2019-11-11 23:50:42 -08:00
Esun Kim
e45b60d1fe
Fix unique_ptr<char> memory allocation mismatch
2019-11-07 17:53:59 -08:00
Esun Kim
b2b7fc9af8
Replaced grpc_core::UniquePtr with std::unique_ptr
2019-11-07 13:05:39 -08:00
Esun Kim
3a519a0b64
Replaced grpc_core New & Delete with C++ new & delete
2019-11-06 17:52:26 -08:00
Lidi Zheng
c34bef4ca4
Format all Bazel files with buildifier
2019-11-05 14:03:52 -08:00
Yash Tibrewal
780d41224c
Squashed commit of the following:
...
commit 1547cb209a
Author: Yash Tibrewal <yashkt@google.com>
Date: Fri Oct 18 13:12:55 2019 -0700
Revert some other GRPC_CLOSURE_RUN till other issues are fixed
commit 3edeee7ce9
Merge: 22b343e4fb e8f78e7a5d
Author: Yash Tibrewal <yashkt@google.com>
Date: Fri Oct 18 12:26:26 2019 -0700
Merge branch 'master' into combinernew
commit 22b343e4fb
Author: Yash Tibrewal <yashkt@google.com>
Date: Fri Oct 18 12:22:34 2019 -0700
Change some TCP posix closures to GRPC_CLOSURE_RUN
commit 19e60dfe8f
Merge: 153bdcbc97 feae38d3ab
Author: Yash Tibrewal <yashkt@google.com>
Date: Thu Oct 17 11:56:46 2019 -0700
Merge branch 'master' into combinernew
commit 153bdcbc97
Author: Yash Tibrewal <yashkt@google.com>
Date: Thu Oct 17 11:41:14 2019 -0700
Proxy fixture fix
commit c6da80bcce
Merge: 6a32264cdf 98abc22f4c
Author: Yash Tibrewal <yashkt@google.com>
Date: Fri Oct 11 17:05:18 2019 -0700
Merge branch 'master' into combinernew
commit 6a32264cdf
Author: Yash Tibrewal <yashkt@google.com>
Date: Fri Oct 11 17:01:55 2019 -0700
Reviewer comments
commit 6bbd3a1c3c
Author: Yash Tibrewal <yashkt@google.com>
Date: Thu Oct 10 11:55:43 2019 -0700
Fallback cleanup
commit aaa04526a2
Author: Yash Tibrewal <yashkt@google.com>
Date: Thu Oct 10 11:24:18 2019 -0700
Clean up
commit 4266be13d5
Author: Yash Tibrewal <yashkt@google.com>
Date: Thu Oct 10 11:20:05 2019 -0700
Make sure start_ping is called before finish_ping for bdp and keepalive
commit 14107957aa
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 18:56:07 2019 -0700
chttp2 fixes
commit 5643aa6cb3
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 18:25:19 2019 -0700
Remove closure list scheduling from combiners
commit c596449430
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 17:35:54 2019 -0700
ares windows fix
commit 9f933903b9
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 17:23:11 2019 -0700
More fixes
commit 3c3a7d0e9b
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 16:08:07 2019 -0700
Fix errors
commit 56539cc448
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 15:22:28 2019 -0700
Everything compiles
commit 714ec01e4b
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 13:44:18 2019 -0700
src compiles
commit 54dcbd170d
Author: Yash Tibrewal <yashkt@google.com>
Date: Wed Oct 9 13:16:08 2019 -0700
chttp2_transport changes
commit 7a3388b077
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 18:33:55 2019 -0700
resource quota and lb policy
commit 714e4c849f
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 17:23:04 2019 -0700
Further
commit 1d17ad7d44
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 13:34:52 2019 -0700
ares ev driver windows changes
commit 3110c062c5
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 12:47:37 2019 -0700
ares dns changes
commit 0e10bc17ea
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 12:24:45 2019 -0700
Add dns_resolver changes
commit 4a71a911e8
Author: Yash Tibrewal <yashkt@google.com>
Date: Tue Oct 8 12:08:10 2019 -0700
Add fake_resolver changes
commit 8610a64ec9
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 19:31:13 2019 -0700
Remaning one from xds_client
commit 5f22055d0d
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 18:47:28 2019 -0700
One left from xds_client.cc
commit 4b1223f875
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 17:17:12 2019 -0700
modifications for xds.cc
commit a17bbbd840
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 13:06:25 2019 -0700
grpclb.cc changes
commit 3a33ed4762
Merge: 11058748fd 3d363368ca
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 11:24:11 2019 -0700
Merge branch 'combinernew' of github.com:yashykt/grpc into combinernew
commit 3d363368ca
Author: Yash Tibrewal <yashkt@google.com>
Date: Mon Oct 7 11:18:00 2019 -0700
New combiner
2019-10-18 15:07:54 -07:00
Vijay Pai
c7f296908e
Merge pull request #20642 from vjpai/remove_warn_19
...
Remove unused parameter warnings (19 of 20)
2019-10-17 14:00:07 -07:00
Vijay Pai
37d248abd0
Remove unused parameter warning (19 of 20)
2019-10-17 08:52:10 -07:00
Vijay Pai
6ca827a008
Remove unused parameter warning (18 of 20)
2019-10-17 08:52:05 -07:00
Soheil Hassas Yeganeh
39e982a263
Merge pull request #19488 from soheilhy/string-view2
...
Introduce string_view and use it for gpr_split_host_port
2019-07-01 13:53:16 -04:00
rmstar
ce282e7d7e
Merge pull request #19395 from rmstar/c++_on_ios
...
Fix C++ tests to run on iOS
2019-06-28 11:03:22 -07:00
Soheil Hassas Yeganeh
dbf88dd66f
Revert "Revert "Introduce string_view and use it for gpr_split_host_port.""
...
This reverts commit 80c177d4c4 .
2019-06-27 20:56:15 -04:00
Soheil Hassas Yeganeh
80c177d4c4
Revert "Introduce string_view and use it for gpr_split_host_port."
2019-06-26 16:22:13 -04:00
Soheil Hassas Yeganeh
f9516b04d5
Merge pull request #19218 from soheilhy/string-view
...
Introduce string_view and use it for gpr_split_host_port.
2019-06-26 13:15:52 -04:00
Soheil Hassas Yeganeh
ef0f9bf7ec
Introduce string_view and use it for gpr_split_host_port.
2019-06-20 23:19:34 -04:00
Prashant Jaikumar
43628b286f
Update googletest version to v1.8.1
...
Bazel builds of test/cpp/end2end:end2end_test were failing on Mac OS with v1.8.0 due to missing gtest symbols. The issue is not seen in v1.8.1. A WORKSPACE file was added to gtest repo in 1.8.1, so gtest.BUILD can be removed.
2019-06-20 18:17:13 -07:00
Prashant Jaikumar
fbfb93c88f
Fix C++ tests to run on iOS
...
- Define grpc_iomgr_run_in_background in iomgr_posix_cfstream.cc
- Use *_IF_SUPPORTED() for death tests
- Move global test init, teardown to SetUpTestCase, TearDownTestCase as GTMGoogleTestRun doesn't run main()
2019-06-20 18:16:20 -07:00
Esun Kim
90fbdc92f5
Roll-forward "Config migration"
...
This reverts commit 236ae12bb1 .
2019-05-20 15:47:24 -07:00
Alexander Polcyn
236ae12bb1
Revert "Config migration"
...
This reverts commit 87905ae5ea .
2019-05-14 14:36:33 -07:00
Yash Tibrewal
aa89a97531
Merge pull request #18946 from yashykt/svccfgerrortransient
...
Service Config Changes to set channel in transient failure on invalid service config
2019-05-10 06:14:44 -07:00
Esun Kim
87905ae5ea
Config migration
2019-05-09 12:29:38 -07:00
Yash Tibrewal
dfa45cb7ac
Merge branch 'master' into svccfgerrortransient
2019-05-08 16:44:33 -07:00
Yash Tibrewal
b6c7cb81f0
Fix resolver component test
2019-05-08 11:23:06 -07:00
Alexander Polcyn
2a4d62819b
Revise c-ares timeouts to use c-ares's internal timeout/retry logic
2019-05-08 09:57:39 -07:00
Yash Tibrewal
6cba63eb47
reviewer comments and tests
2019-05-08 03:36:37 -07:00
Yash Tibrewal
587ae4a2d9
Fix existing tests
2019-05-03 15:40:39 -07:00
Esun Kim
1518ecbd76
Added new configuration system to core/grp.
...
More generic configuration system is introduced in order to i) unify the
way how modules access the configurations instead of using low-level
get/setenv functions and ii) enable the customization for where configuration
is stored. This could be extended to support flag, file, etc.
Default configuration system uses environment variables as before so
basically this is expected to work just as it did. This behavior can
change by redefining GPR_GLOBAL_CONFIG_DEFINE_*type* macros.
* Migrated configuration
GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS
GRPC_EXPERIMENTAL_DISABLE_FLOW_CONTROL
GRPC_ABORT_ON_LEAKS
GRPC_NOT_USE_SYSTEM_SSL_ROOTS
2019-04-30 15:49:24 -07:00
yang-g
37783d6329
Stop calling ParseCommandLineFlags directly, use wrapper call instead
2019-04-24 10:09:39 -07:00
Vijay Pai
ec06d677e2
Merge pull request #16681 from arrowd/master
...
Fix various tests on FreeBSD.
2019-04-10 14:16:36 -07:00
Bill Feng
c1b03b68da
Merge remote-tracking branch 'upstream/master' into feature/reinstate-rbe-windows
2019-03-28 16:45:41 -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
Bill Feng
d93959853f
Enabled Windows Bazel build for cpp tests
2019-03-21 18:00:48 -07:00
Mark D. Roth
4222ba53d7
Merge pull request #17987 from markdroth/resolver_api
...
Add ResultHandler to Resolver API
2019-03-21 10:26:04 -07:00
Jan Tattermusch
cf6a311761
Revert "Windows builds for gRPC C++ tests"
2019-03-15 17:15:20 +01:00
Mark D. Roth
687580fe04
Add ResultHandler to Resolver API.
2019-03-13 07:43:41 -07:00
billfeng327
4241edeaa4
renamed tag to no_windows in conformation with Bazel and TensorFlow
2019-03-07 14:52:49 -08:00
billfeng327
928aedf5c8
Merge branch 'master' into update-deps-version
2019-03-06 15:48:29 -08:00