Commit Graph

4249 Commits

Author SHA1 Message Date
Esun Kim 250f9fc026
Revived google-readability-casting (#31607)
* Added google-readability-casting

* Fix

* Use brace init for constants

* more

* Fix

* Fix 2

* More fix

* Fixf
2022-11-11 16:44:37 -08:00
Yijie Ma 5a131bd94b
EventEngine::RunAfter: handshaker (#31564)
* EventEngine::RunAfter migration for handshaker

* Fix build and add execution contexts to the top of the timer function
stack

* Add event_engine_ member object, remove OnTimeoutFn and self.reset()
before goes out of scope

* Run iwyu and fix_build_deps.py

* fix: more cleanup

* fix: restore unrelated files

* fix: run tools/distrib/clang_format_code.sh

* re: pass EventEngine as shared_ptr to HandshakeManager

* fix: ran tools/distrib/sanitize.sh

* fix: resolve review comment to initialize event_engine_ from the channel
args passed in DoHandshake instead of passing through constructor

* sanitize

* fix: resolve comments

* fix: one more
2022-11-11 10:12:16 -08:00
Richard Belleville 51f296b4f8
Bump master branch to 1.52.0-dev (gribkoff) (#31618)
* bump version to 1.52.0-dev

* regenerate projects
2022-11-10 16:11:08 -08:00
Esun Kim 42c2767c19
Revert "Bump v1.51.x to 1.51.0-pre1 (#31620)" (#31621)
This reverts commit bae9dd79aa.
2022-11-10 15:21:14 -08:00
Richard Belleville bae9dd79aa
Bump v1.51.x to 1.51.0-pre1 (#31620)
* bump version to 1.51.0-pre1

* regenerate projects
2022-11-10 15:17:59 -08:00
Vignesh Babu 73ea66d8ee
A http2 setting to ensure safe rollout of tcp receive buffer auto-sizing and peer-state based framing experiments (#31404)
* A http2 setting to ensure safe rollout of tcp receive buffer auto-sizing and peer-state based framing experiments

* fix comments + sanity + iwyu

* comments

* update per comments

* comments

* iwyu

* address comments

* remove if check
2022-11-10 14:35:27 -08:00
Esun Kim 8696d49e23
Added version macros (#31033) 2022-11-07 11:31:00 -08:00
Esun Kim 530b702259
Update Clang 15 (#31518)
* clang-15

* iwyu

* run clang_format_code

* Clang-Tidy config

* Fix misc-unused-using-decls

* Fixed performance-inefficient-vector-operation

* Sanity
2022-11-04 09:08:03 -07:00
Cheng-Yu Chung 37c6662919
Remove `include/grpcpp/impl/codegen/callback_common.h` (#31311)
* Remove `include/grpcpp/impl/codegen/callback_common.h`

* Update
2022-11-01 18:34:20 -04:00
Cheng-Yu Chung 08ee2a3487
Remove `include/grpcpp/impl/codegen/call_op_set.h` (#31310) 2022-10-31 22:33:35 -04:00
Cheng-Yu Chung e60140676a
Remove `include/grpcpp/impl/codegen/channel_interface.h` (#31312)
* Remove `include/grpcpp/impl/codegen/channel_interface.h`

* Update
2022-10-28 17:47:49 -04:00
Cheng-Yu Chung d6a050842a
Revert "Revert "Remove `include/grpcpp/impl/codegen/rpc_service_method.h` (#31277)" (#31317)" (#31322)
This reverts commit 8b8fcfdd0b.
2022-10-28 15:40:45 -04:00
Mark D. Roth 447a058837
xDS: remove deprecated C++ APIs in the experimental namespace (#31451) 2022-10-26 14:53:57 -07:00
Cheng-Yu Chung 9143627664
Remove `include/grpcpp/impl/codegen/security/auth_context.h` (#31292) 2022-10-26 11:39:47 -04:00
Cheng-Yu Chung c65348879a
Remove `include/grpcpp/impl/codegen/time.h` (#31290) 2022-10-25 17:46:44 -04:00
Cheng-Yu Chung 493b961dfb
Remove `include/grpcpp/impl/codegen/sync_stream.h` (#31289) 2022-10-24 18:01:12 -04:00
Cheng-Yu Chung f4b25ab837
Remove `include/grpcpp/impl/codegen/stub_options.h` (#31287) 2022-10-21 20:23:54 -04:00
Yash Tibrewal 3b6675c2de
OpenCensus: Move measures, views and CensusContext to include file (#31341)
* OpenCensus: Move measure and view declarations to include file

* Move CensusContext class too

* Fix IWYU

* Guard with experimental

* Formatting

* clang tidy fixes

* cleanup

* Reviewer comments
2022-10-20 17:42:08 -07:00
Cheng-Yu Chung 34b1633944
Remove `include/grpcpp/impl/codegen/string_ref.h` (#31286) 2022-10-19 22:56:36 -04:00
Cheng-Yu Chung 8c7cb57c02
Revert "Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h`"" (#31391)" (#31396)
This reverts commit 7827868762.
2022-10-19 08:01:54 -07:00
Cheng-Yu Chung 7827868762
Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h`"" (#31391)
* Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h` (#31284)" (#31387)"

This reverts commit 1a9ce63199.

* Update
2022-10-18 18:26:05 -04:00
Cheng-Yu Chung 1a9ce63199
Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h` (#31284)" (#31387)
This reverts commit 3981105be6.

Co-authored-by: Alisha Nanda <alishananda@google.com>
2022-10-18 10:27:04 -07:00
AJ Heller 62e88c0c31
Document thread-saftey of ClientContext::TryCancel (#30416)
* Document thread-saftey of ClientContext::TryCancel

* rm sneaky file
2022-10-18 10:13:30 -07:00
Cheng-Yu Chung 3981105be6
Remove `include/grpcpp/impl/codegen/status_code_enum.h` (#31284) 2022-10-18 11:34:24 -04:00
Cheng-Yu Chung 0fbc4a715c
Remove `include/grpcpp/impl/codegen/service_type.h` (#31282) 2022-10-17 16:26:03 -04:00
Yash Tibrewal 727ae8c885
GcpObservability: Add experimental public target (#31339)
* GcpObservability: Add experimental public target

* Yapf and IWYU
2022-10-17 12:43:45 -07:00
Yash Tibrewal 2c98fe0119
SerializationTraits: Remove unnecessary 2nd template parameter (#31363) 2022-10-17 12:43:12 -07:00
Cheng-Yu Chung ad04dc3766
Remove `include/grpcpp/impl/codegen/slice.h` (#31283) 2022-10-17 14:19:27 -04:00
Cheng-Yu Chung 7a2c28c7b9
Remove `include/grpcpp/impl/codegen/server_interceptor.h` (#31281) 2022-10-17 12:21:26 -04:00
Cheng-Yu Chung d699b574a8
Remove `include/grpcpp/impl/codegen/server_callback.h` (#31279) 2022-10-12 15:37:14 -04:00
Cheng-Yu Chung a1cb2f3d6f
Remove `include/grpcpp/impl/codegen/server_callback.h` (#31280) 2022-10-12 14:34:18 -04:00
Cheng-Yu Chung 6971df9aee
Remove `include/grpcpp/impl/codegen/serialization_traits.h` (#31278) 2022-10-12 14:30:37 -04:00
Cheng-Yu Chung 8b8fcfdd0b
Revert "Remove `include/grpcpp/impl/codegen/rpc_service_method.h` (#31277)" (#31317)
This reverts commit e3803bb1b5.
2022-10-11 12:32:57 -07:00
Cheng-Yu Chung e3803bb1b5
Remove `include/grpcpp/impl/codegen/rpc_service_method.h` (#31277) 2022-10-11 10:57:56 -04:00
Cheng-Yu Chung d1c04427f3
Remove `include/grpcpp/impl/codegen/rpc_method.h` (#31269) 2022-10-11 10:57:44 -04:00
Cheng-Yu Chung 9125b6ee66
Remove `include/grpcpp/impl/codegen/proto_buffer_writer.h` (#31268) 2022-10-11 10:57:28 -04:00
Cheng-Yu Chung 113422ff8b
Remove `include/grpcpp/impl/codegen/proto_buffer_reader.h` (#31261) 2022-10-10 11:35:37 -04:00
Cheng-Yu Chung cc58369279
Remove `include/grpcpp/impl/codegen/completion_queue.h` (#31059)
* Remove `include/grpcpp/impl/codegen/completion_queue.h`

* Update

* Update

* Fix build error

* Update
2022-10-10 11:35:09 -04:00
Cheng-Yu Chung 3eb0c7f2ff
Remove `include/grpcpp/impl/codegen/client_unary_call.h` (#31058)
* Remove `include/grpcpp/impl/codegen/client_unary_call.h`

* Automated change: Fix sanity tests

* Fix

Co-authored-by: ralphchung <ralphchung@users.noreply.github.com>
2022-10-10 11:34:55 -04:00
Cheng-Yu Chung d76c6f61f0
Remove `include/grpcpp/impl/codegen/method_handler.h` (#31249) 2022-10-06 15:50:54 -04:00
Cheng-Yu Chung 488f17eb46
Remove `include/grpcpp/impl/codegen/message_allocator.h` (#31246) 2022-10-06 13:18:24 -04:00
Cheng-Yu Chung 279ec5ab45
Remove `include/grpcpp/impl/codegen/interceptor.h` (#31245) 2022-10-06 13:18:11 -04:00
Cheng-Yu Chung a192f155b9
Remove `include/grpcpp/impl/codegen/config.h` (#31061)
* Remove `include/grpcpp/impl/codegen/config.h`

* Update
2022-10-06 13:14:16 -04:00
Cheng-Yu Chung 4ba0f9afb5
Revert "Revert "Remove `include/grpcpp/impl/codegen/client_callback.h` (#31005)" (#31079)" (#31087)
This reverts commit da08fe1d6f.
2022-10-04 13:59:32 -04:00
Cheng-Yu Chung 0e8a6515df
Remove `include/grpcpp/impl/codegen/client_context.h` (#31006)
* Remove `include/grpcpp/impl/codegen/client_context.h`

* Update

* Update
2022-10-03 18:01:22 -04:00
nanahpang d84846646d
Enable logs for error message in call_op_set.h. (#31177)
* Enable logs for error message in call_op_set.h. 

The `gpr_log` was commented out from call_op_set.h at PR: https://github.com/grpc/grpc/pull/20681, because of the undefined error. It is probably just missing the header file, so adding the `gpr_log` back.

* Automated change: Fix sanity tests (#31178)

Co-authored-by: nanahpang <nanahpang@users.noreply.github.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nanahpang <nanahpang@users.noreply.github.com>
2022-09-30 10:28:06 -07:00
Vignesh Babu 7655858e93
Reland tcp endpoints for posix event engine (#31150)
* Revert "Revert "Tcp endpoint implementation for posix event engine. (#30559)" (#31134)"

This reverts commit 5fa37322cb.

* make tx zero-copy more robust

* make tx zero-copy more robust

* typo

* fix

* re-enable commented code

* sanity

* sanity again

* Add parsing of /etc/security/limits.d directory

* review comments

* review comments

* typo in copyright

* missing newline

* sanity

* sanity

* iwyu
2022-09-30 09:26:08 -07:00
AJ Heller 6cac641c64
EventEngineFactoryReset - remove custom factory and reset default engine (#30554)
* EventEngineFactoryReset - remove custom factory and reset default engine

* fix

* Automated change: Fix sanity tests

* unused parameter

* fix

* fix

Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2022-09-29 15:45:54 -07:00
Ashitha Santhosh 2bdec04852
Update comment on GRPC_ARG_TSI_MAX_FRAME_SIZE (#31114) 2022-09-28 09:56:24 -07:00
AJ Heller 2ee2c91c92
Reland x2: Make GetDefaultEventEngine return a shared_ptr (#30619)
* Reland x2: Make GetDefaultEventEngine return a shared_ptr

* remove thread leak from NativeDNSResolver

This is not going to work for resolvers that support cancellation.

* give resolvers bounded lifetimes

Some resolver own EventEngines. EventEngines cannot run off the end of
the process since they have unjoined threads (problematic in a small set
of environments). This gives resolvers bounded lifetimes, and allows
replacement of resolvers without ASAN issues of deleting resolvers in
active use (occurs in tests).

* fix

* fix windows

* fix surface init test

* fix

* sanitize

* use after move

* the test must wait for the callback to be destroyed

* windows fix: delete the resolver on iomgr shutdown, not before

* Make TimerManager threads non-joinable

On gRPC shutdown, any unjoined TimerManager threads will cause TSAN to
detect thread leaks. This fix resolves issues I saw in end2end test
shutdown in another PR, where a single timer manager thread was always
alive after the test ended.

The long-term solution is to integrate the new ThreadPool here, but this
unblocks me for now.

* backport fix

* fix

* shared_ptr<EventEngine> in EventEngine benchmarks
2022-09-28 08:39:56 -07:00