Commit Graph

4043 Commits

Author SHA1 Message Date
Vijay Pai edf500fb82
Add useful status error message when server threadpool is exhausted (#26146) 2021-05-03 12:16:12 -07:00
Esun Kim e372a63cf7
Revert "Enabled GPR_ABSEIL_SYNC on Apple (#25841)" (#26115)
This reverts commit cb9889d35d.
2021-04-28 17:35:31 -07:00
Esun Kim f27a41db43
Added GRPC_ERROR_IS_ABSEIL_STATUS (#26078)
Added GRPC_ERROR_IS_ABSEIL_STATUS
2021-04-28 15:32:35 -07:00
Vijay Pai dc6948cf35
Use atomics to remove locks in Channel/Server::CallbackCQ() (#26091) 2021-04-27 14:54:07 -07:00
mkruskal-google 2bf75aa68a
Add optional suffix to client-side stub objects (#25996)
* Adding suffix for stats handling to gRPC

* Fixing typo

* Fixing codegen, adding tests

* Fixing test failures

* Adding nullptr default in StubOptions

* Updating golden test file

* Replacing std::make_unique with absl::make_unique for pre-C++14 compatibility

* Fixing clang format  errors

* Reuse stub options for generic stubs

* Cleaning up compiler warnings in GenericStub
2021-04-26 17:19:43 -07:00
Yash Tibrewal 4768210ec8
s/OnServingStatusChange/OnServingStatusUpdate (#26010)
* s/OnServingStatusChange/OnServingStatusUpdate

* Update python files
2021-04-26 15:36:35 -07:00
Mark D. Roth feff79abc7
add test-only channel arg to set per-channel xDS bootstrap config (#25936)
* pass XdsClient to LB policies via channel args

* add channel arg for overriding bootstrap config on a per-channel basis

* change tests to use new channel arg approach -- currently failing for server-side tests

* use the same channel args approach on the server side

* clang-format

* fix CircuitBreakingMultipleChannelsShareCallCounter test

* fix XdsEnabledServerTest test

* add TODO

* clang-format

* generate_projects

* fix clang-tidy

* fix build

* attempt to fix python
2021-04-21 10:16:33 -07:00
AJ Heller d3677e569a
Return port number from EventEngine::Listener::Bind (#26004)
* Return port number from EventEngine::Listener::Bind

This is an integer, unlike the DNSResolver, since the underlying
bind syscall deals in integers.

* Add return type documentation
2021-04-19 16:01:22 -07:00
AJ Heller e25637ebea
Fix EventEngine factory method return types: unique_ptr for lifetime management (#25971) 2021-04-16 18:22:22 -07:00
Ashitha Santhosh 0570bd9205
Plumbs SAN fields to tsi_peer. (#25874) 2021-04-16 09:12:38 -07:00
ZhenLian f6b69a659b
Add Comments For Getting Peer Cert Full Chain (#25942) 2021-04-09 16:37:43 -07:00
Esun Kim cb9889d35d
Enabled GPR_ABSEIL_SYNC on Apple (#25841) 2021-04-08 12:38:55 -07:00
AJ Heller 03adef1d3c
Move platform-specific sockaddr logic out of port_platform for EventEngine (#25886) 2021-04-05 21:03:04 -07:00
AJ Heller 4d4ee609c1
gRPC EventEngine Interface (#25795) 2021-04-05 09:26:16 -07:00
Esun Kim 10b17f3739
Added mock_stream_test (#25103) 2021-03-25 14:04:39 -07:00
Lidi Zheng b457f43227
Implement C++ Admin Interface API (#25753)
* Implement C++ Admin Interface API

* Address reviewer's requests

* Remove static asserts for raw pointers

* Make sanity tests happy

* Windows: pacify conflict between ifndef and macros

* Disable admin services test on iOS

* Make iOS happy by:

* Letting grpcpp_admin conditionally depend on grpcpp_csds

* Fix an unexpected side-effect of dependency update
2021-03-23 09:53:12 -07:00
Lidi Zheng 1040fbdb9f
Re-introduce "CSDS Implementation" (#25762)
* Revert "Revert "CSDS Implementation (#25038)" (#25745)"

This reverts commit 98fd4e1e36.

* Add xDS special Bazel build rules

* Add 2 todos to remove the added rules
2021-03-22 13:14:19 -07:00
Lidi Zheng 98fd4e1e36
Revert "CSDS Implementation (#25038)" (#25745)
This reverts commit 27de24a38e.
2021-03-17 13:38:47 -07:00
Lidi Zheng 27de24a38e
CSDS Implementation (#25038)
* Implement the xDS Config Dump as CSDS in Core

* Revemp the logic of caching and constructing the CSDS response
* Unref created error
* Fix the clang tidy complains
* Resolve comments about symbol preload and Json ctor
* Improve readability
* Merge with new ADS logic && support latest CSDS
  * Refactor the version/client_status logic
  * Add support for error_state
  * Add support for does_not_exist
  * Add node information
* Fix the ProtoBuf segfault
* More test cases
* Refactor to use bytes as cache instead of JSON

* Apply clang_tidy's suggestion

* Resolve reviewer's requests

* Tiny stylish fixes && make sanity test happy

* WIP: still working on the matchers

* Update a bunch of matchers

* Improve readability a bit

* Resolve reviewer's suggestions

* Resolve reviewer's comments

* Make Unpack fail fast
2021-03-16 18:17:37 -07:00
Yash Tibrewal 7021b72d1f
Revert Revert Xds Status Notifier (#25718)
* Revert "Revert "xDS status notifier (#25321)" (#25702)"

This reverts commit 3c9f3972e3.

* Remove connection from map when OnClose is not registered

* Reviewer comments
2021-03-15 14:29:06 -07:00
Yash Tibrewal 3c9f3972e3
Revert "xDS status notifier (#25321)" (#25702)
This reverts commit 81e90432e1.
2021-03-12 08:54:34 -08:00
Vijay Pai 0937cb1249
Add usage note about immediately-Set alarms (#25678) 2021-03-10 16:45:47 -08:00
Esun Kim 2dc8df9ef6
Fix bugprone unhandled self assignment (#25667)
* Add bugprone-unhandled-self-assignment

* Fix bugprone-unhandled-self-assignment
2021-03-10 13:38:23 -08:00
Vijay Pai b36d3f7e33
Annotate C++ server (#25605)
* Make annotations real in server header

* More annotations

* clang-fmt

* Annotate shutdown state variables

* Fix annotation of CV predicate

* Fix param list
2021-03-10 10:52:26 -08:00
Esun Kim a41a206b8c
Fix readability-const-return-type,readability-delete-null-pointer,readability-simplify-boolean-expr (#25628) 2021-03-09 21:30:35 -08:00
Yash Tibrewal 81e90432e1
xDS status notifier (#25321)
* Serving status notification for xds enabled servers
2021-03-08 21:47:13 -08:00
Vijay Pai dae5624e47
Thread annotations for C++ callback API headers (#25571)
* Annotate headers

* clang-format
2021-03-04 10:15:21 -08:00
Esun Kim f862a2259f
Add abseil thread annotations to grpcpp/sync (#25560)
* Add abseil annotation to grpcpp/sync
* Bump alpine linux to 3.11 from 3.9
2021-03-03 08:39:20 -08:00
Vijay Pai 26e4c14b1e
Add virtual destructor to ClientReactor base class (#25599)
* Add virtual destructor

* Remove subclass empty destructors
2021-03-02 21:08:07 -08:00
WANG Lei f99a08fe46
Remove unused parameter from UnaryDeserializeHelper (#25332)
* fix -Wunused-parameter warning

* clang-fmt

* clang-format

Co-authored-by: Vijay Pai <vpai@google.com>
2021-03-02 17:51:36 -08:00
Vijay Pai 909cac3866
Document reaction concurrency and reactor lifetime (#25481) 2021-02-24 09:18:15 -08:00
AJ Heller 2ca08a023e
Document ownership transfer in ChannelArguments::SetPointerWithVtable (#25527) 2021-02-23 13:18:59 -08:00
Vijay Pai ce84795c11
Explain include/grpc++ vs include/grpcpp 2021-02-17 12:08:59 -08:00
Esun Kim 2368ede693
Merge pull request #25448 from aidanwolter3/fx-cert-path
[Fuchsia] Fix root SSL cert path
2021-02-17 09:49:18 -08:00
Esun Kim fa75d67470
Merge pull request #25447 from aidanwolter3/fx-disable-cares
[Fuchsia] Disable C-ARES resolver
2021-02-17 09:48:53 -08:00
Vijay Pai dba8bb59a0 Implement callback CQ at C++ layer using shared thread pool if non-background iomgr 2021-02-16 16:02:23 -08:00
Aidan Wolter 1538078745 [Fuchsia] Fix root SSL cert path
Fuchsia stores the root SSL cert in a different location than Linux.
This commit corrects this, so that SSL connections work.
2021-02-16 14:07:44 -08:00
Aidan Wolter 1ead3c0c7b [Fuchsia] Disable C-ARES resolver
C-ARES does not work on Fuchsia, and is causing DNS solution failures.
We are disabling C-ARES so that we fall back to the native resolver.

Issue: #25446
2021-02-12 18:19:49 -08:00
Esun Kim 6468d8a69d Make grpcpp/mutex compatible absl/mutex 2021-02-11 15:02:42 -08:00
Bassam Ojeil 701d3cdf9a Move third party identity C++ api out of experimental namespace
This PR is a continuation of:
https://github.com/grpc/grpc/pull/25304
2021-02-08 13:54:15 -08:00
mkruskal-google 0416696848
Update auth_context.h 2021-01-28 16:27:48 -05:00
Yash Tibrewal 73978ad047
Merge pull request #25240 from yashykt/initonservercreds
Initialize gRPC on ServerCredentials
2021-01-28 01:00:09 -08:00
Yash Tibrewal 0ca1774d0f Initialize gRPC on ServerCredentials 2021-01-27 17:51:14 -08:00
Esun Kim a1ae48db20
Merge pull request #25196 from devjgm/error-details-template
refactor!: change error_details functions to templates
2021-01-21 11:26:33 -08:00
Greg Miller 7d4d516511 wip: change error_details functions to templates 2021-01-20 09:48:22 -05:00
ZhouyihaiDing a584bc4f02 Support ServerContext for callback API 2021-01-19 22:00:10 -08:00
AJ Heller ec9451e856 Fix typo in documentation 2021-01-13 11:23:50 -08:00
Vijay Pai 91bb4e178c Check for nullptr (deser failure) before destructing included request 2021-01-13 01:33:13 -08:00
ZhenLian e745f8cb55
Merge pull request #25018 from ZhenLian/zhen_dynamic_file_reloading_9
Support Default Root Certs in Tls Credentials
2021-01-07 09:40:31 -08:00
ZhenLian c48e39d5c2 Support Default Root Certs in Tls Credentials 2021-01-06 23:02:52 -08:00
Yang Gao f735728a39
Merge pull request #25055 from acozzette/parse-json
Updated parse_json.cc to rely on config_protobuf.h for protobuf types
2021-01-06 14:48:47 -08:00
Chuan Ren 06cc42eb85 Add support of implicit and explicit flows for external account creds 2021-01-05 13:20:42 -08:00
Adam Cozzette 63ee5b62c2 Updated parse_json.cc to rely on config_protobuf.h for protobuf types
Google's internal version of the gRPC codebase uses a version of
protobuf with a different namespace and include paths. This commit makes
parse_json.cc rely on config_protobuf.h for protobuf types so that it
will work properly in that environment. I also replaced a call to
Status::error_code() with a call to Status::code() instead. This way the
code will work with absl::Status, which has a somewhat different API
compared to google::protobuf::util::Status.
2020-12-23 15:55:17 -08:00
Yash Tibrewal 4105d2ce20 XdsServerBuilder, config fetching per resolved address and delaying bind/listen till fetch is complete 2020-12-16 12:15:52 -08:00
Yash Tibrewal c9e99945ec Add SANs matching for xDS credentials 2020-12-08 15:15:39 -08:00
Esun Kim 20509e823d Fix google-explicit-constructor 2020-12-03 19:22:22 -08:00
Esun Kim decc199ca8 Fix by clang-tidy 2020-12-03 16:24:19 -08:00
Yash Tibrewal 096b2324e1 Experimental API for XdsServerCredentials 2020-12-01 12:47:52 -08:00
Esun Kim 770e67249f Update by review 2020-11-30 15:09:27 -08:00
Esun Kim ac080fd17a Fix readability-inconsistent-declaration-parameter-name manually 2020-11-30 14:22:40 -08:00
Esun Kim e7b9404dc0 Added grpc_stacktrace_minloglevel 2020-11-25 17:16:50 -08:00
ZhenLian d74e43da95 Add File Watcher Certificate Provider API 2020-11-19 13:36:13 -08:00
Esun Kim 09df3a6823 Revert "Enable GPR_ABSEIL_SYNC on Apple"
This reverts commit 2197855c8048f5981070faea8f327eb451701db8.
2020-11-16 22:33:41 -08:00
Esun Kim 55ccc1f4b3 Enable GPR_ABSEIL_SYNC on Apple 2020-11-03 13:35:46 -08:00
Vijay Pai 3a68f3dc6e Remove internal use of deprecated ClientAsyncResponseReaderFactory 2020-11-02 10:56:43 -08:00
Vijay Pai afe4d1d086 Reduce templating for async client unary call codegen 2020-10-30 14:26:47 -07:00
Esun Kim 24d115db36
Merge pull request #24572 from veblush/ios-tests
Prep for Mojave test
2020-10-30 10:15:35 -07:00
Vijay Pai 3ecb008aa0
Merge pull request #24494 from vjpai/server_code_size
Reduce template use in sync server unary calls
2020-10-29 22:56:51 -07:00
ZhenLian d5d35650b0 add API to get last modification time of a file 2020-10-29 10:43:29 -07:00
Esun Kim 94c6766bf1 Conditional GPR_STDCPP_TLS on Apple 2020-10-27 23:19:58 -07:00
ZhenLian 4d80f376a3
Merge pull request #24227 from ZhenLian/zhen_dynamic_file_reloading_3
C-core changes for TLS credentials
2020-10-26 13:38:39 -07:00
Esun Kim 9936d7785c
Merge pull request #24198 from chrisse74/protoUtilsStaticCast
proto_utils.h: suppress conversion warning
2020-10-25 09:26:05 -07:00
Yash Tibrewal a7c18d041b
Merge pull request #24518 from grpc/revert-24255-revert-24063-deprecateminsentarg
Revert "Revert "Deprecate GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS""
2020-10-23 13:36:19 -07:00
Esun Kim 43333b4232
Merge pull request #24535 from veblush/clean-up-WriteOptions
Clean up WriteOptions cctor
2020-10-23 10:52:58 -07:00
Vijay Pai 96503e3c72 Reduce code paths 2020-10-22 22:29:22 -07:00
ZhenLian 518ed1303c Add Credential Loading From Static Providers For TLS Credentials 2020-10-22 13:55:31 -07:00
Esun Kim 119228e7bb Clean up WriteOptions cctor 2020-10-22 11:11:09 -07:00
Esun Kim d812b0cf38 Fix errors in doxygen param descriptions 2020-10-22 10:42:59 -07:00
Yash Tibrewal 1edc2e78cc
Merge pull request #24362 from yashykt/fdinterceptor
Experimental support and tests for CreateCustomInsecureChannelWithInterceptorsFromFd
2020-10-21 15:53:35 -07:00
Yash Tibrewal b555343dd3
Revert "Revert "Deprecate GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS"" 2020-10-21 15:29:52 -07:00
Yash Tibrewal 02ca015b13 Experimental support and tests for CreateCustomInsecureChannelWithInterceptorsFromFd 2020-10-21 13:34:26 -07:00
Vijay Pai 6f7a98916b Reduce template use in server 2020-10-21 13:33:16 -07:00
Vijay Pai 476743786b Also reduce templating for ClientUnaryReactor 2020-10-20 04:12:40 -07:00
Vijay Pai 97924fcfb2
Merge pull request #24420 from vjpai/sync_client_code_size_v2
Reduce sync client templating for protobuf without protobuf dependence
2020-10-20 00:08:17 -07:00
Vijay Pai 8f9233ca30
Merge pull request #24423 from vjpai/callback_client_code_size_v2
Reduce templating for unary callback client RPC without protobuf dependence
2020-10-20 00:07:51 -07:00
Esun Kim a62a70207c
Merge pull request #24448 from veblush/clang-format-8
Upgrade clang-format 8
2020-10-19 09:29:35 -07:00
Esun Kim 34789b2d83 Fix by clang-format-8. 2020-10-16 11:37:18 -07:00
Esun Kim f644046981
Revert "Disable C++ TLS on iOS temporarily" 2020-10-16 09:35:05 -07:00
Vijay Pai ef212a908e Reduce sync client templating for protobuf 2020-10-15 04:48:20 -07:00
Vijay Pai 7e72bba162 Reduce templating for unary callback client RPC 2020-10-15 04:47:39 -07:00
Esun Kim 1b356ad6e8 Disable C++ TLS on iOS temporarily 2020-10-10 17:05:27 -07:00
Yash Tibrewal 4013fd9dc9
Merge pull request #24313 from yashykt/xdscredscpp
C++ API to create Xds channel credentials
2020-10-08 22:27:21 -07:00
Yash Tibrewal c52cb09f47 Add experimental XdsCredentials with support for insecure channel_credentials and security_connector 2020-10-08 20:37:47 -07:00
Karthik Ravi Shankar 30ed4a50aa
Merge pull request #24355 from karthikravis/cleanup
Move channel plugin from grpc_impl to grpc
2020-10-08 17:20:08 -07:00
Esun Kim afd0526f4c
Merge pull request #24247 from veblush/tls
Replacing all TLS variants with the C++11 thread_local
2020-10-08 16:24:36 -07:00
Esun Kim 44f138e0b2 Use STDCPP_TLS for major platforms 2020-10-08 13:05:53 -07:00
Esun Kim 1ee0c88817 Add GPR_STDCPP_TLS 2020-10-08 13:05:49 -07:00
Esun Kim 8e9e895ffc Replace grpc_shutdown_blocking with grpc_shutdown 2020-10-08 10:57:05 -07:00
Esun Kim b64d0bf1cb
Merge pull request #24283 from veblush/ndk-bump
Removing TLS workaround for Android NDK r12b
2020-10-07 16:12:24 -07:00
Esun Kim be23ad0ed1
Merge pull request #24282 from veblush/ios-bump
Bump iOS and OSX version
2020-10-07 16:12:16 -07:00