Yousuk Seung
c7f641da0d
server: introduce ServerMetricRecorder API and move per-call reporting from a C++ interceptor to a C-core filter ( #32106 )
...
* backend metric sampling
* Comments addressed.
* More comments addressed.
* Pushing changes left behind locally.
* Removed empty lines
* Update OrcaService to use ServerMetricRecorder (no named metrics yet)
* Comments addressed.
* More comments addressed
* More comments addressed.
* Comments fixed
* Comments addressed.
* Test fixed
* make seq returned always up-to-date
* skip atomic load when not cached
* Fixed ABSL_GUARDED_BY
* Comments addressed except client_lb_end2end_test
* test updated
* Comments addressed
* BUILD fix.
* BackendMetricDataState moved to a separate header
* comments addressed
* Fixed clang and buildifier errors
* More sanity check errors fixed.
* Fixed xds tests
* Ran generate_projects.sh
* Comments addressed
* comments addressed.
* generate project
* Build fixed
* generate project
* sanity check errors fixed
* test fixed
* Backup poller period override moved to main()
* Also move cfstream override
* Clang fixes, sanitize
* generate_projects.sh
* portable print format fix
* Removed outdated comment
2 years ago
Craig Tiller
a414dbd304
Revert #30349 ( #32008 )
...
* [iwyu] Add missing #include <type_traits> to fix build breakage with LLVM after e0a66116fc
* Update IWYU mappings
New libc++ doesn't provide <type_traits> when including <utility>.
* run iwyu
Co-authored-by: alexfh <alexfh@google.com>
2 years ago
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2 years ago
Craig Tiller
49a3035d44
[iwyu] Fix CI job ( #31921 )
...
* fix-includes
* fix
* fix
* fix
* fix
* fix
* Automated change: Fix sanity tests
* add warning label
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2 years ago
Cheng-Yu Chung
1b05576aa3
[cleanups] Clean up `GrpcLibraryInitializer` ( #31894 )
...
* Clean up `GrpcLibraryInitializer`
* Update
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
9a7e77318b
[cleanups] Remove `include/grpc/impl/codegen/grpc_types.h` ( #31835 )
...
* Remove `include/grpc/impl/codegen/grpc_types.h`
* Automated change: Fix sanity tests
* Fix typo
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
0356ff3a72
Remove `include/grpc/impl/codegen/gpr_types.h` ( #31818 )
...
* Remove `include/grpc/impl/codegen/gpr_types.h`
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
e9b287997a
Remove `include/grpcpp/impl/codegen/sync.h` ( #31545 )
...
* Remove `include/grpcpp/impl/codegen/sync.h`
* Fix sanity tests
2 years ago
Cheng-Yu Chung
452d026b7d
Remove `include/grpcpp/impl/codegen/interceptor_common.h` ( #31530 )
...
* Remove `include/grpcpp/impl/codegen/interceptor_common.h`
* Automated change: Fix sanity tests
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
e83d69bdf2
Remove `include/grpcpp/impl/codegen/metadata_map.h` ( #31531 )
...
* Remove `include/grpcpp/impl/codegen/metadata_map.h`
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
224c72b524
Remove `include/grpcpp/impl/codegen/server_interface.h` ( #31539 )
2 years ago
Cheng-Yu Chung
e7f9fb03f4
Remove `include/grpcpp/impl/codegen/server_callback_handlers.h` ( #31533 )
2 years ago
Cheng-Yu Chung
c91c2fbd1a
Remove `include/grpcpp/impl/codegen/completion_queue_tag.h` ( #31320 )
...
* Remove `include/grpcpp/impl/codegen/completion_queue_tag.h`
* Automated change: Fix sanity tests
2 years ago
Esun Kim
50fbe51238
Fix IWYU with clang-15 ( #31556 )
...
* Fix iwyu
* iwyu fix
* more fixed
* Build fix
* more fix
* More fixes 3
2 years ago
Cheng-Yu Chung
08ee2a3487
Remove `include/grpcpp/impl/codegen/call_op_set.h` ( #31310 )
2 years ago
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>
2 years ago
Cheng-Yu Chung
3981105be6
Remove `include/grpcpp/impl/codegen/status_code_enum.h` ( #31284 )
2 years ago
Craig Tiller
9c98d67d7a
[c++14] absl::make_unique --> std::make_unique ( #31159 )
...
* [c++14] absl::make_unique --> std::make_unique
* fix
* fix
3 years ago
Esun Kim
d43511f4af
Removed GRPC_ERROR_NONE ( #31131 )
3 years ago
Cheng-Yu Chung
7cb9731e4e
Remove `include/grpcpp/impl/codegen/call_op_set_interface.h` ( #30990 )
3 years ago
Craig Tiller
004788af3d
[cleanup] Remove profiling timers ( #30779 )
...
* [cleanup] Remove profiling timers
- nobody has used this system in years
- if we needed it, we'd probably rewrite it at this point to be something more modern
- let's remove it until that need arises
* fix
* fixes
3 years ago
Craig Tiller
0450157e06
[iwyu] Better handle <type_traits> ( #30349 )
...
* update mapping
* run tool
* Automated change: Fix sanity tests
* fix
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Mark D. Roth
80541dbc25
Revert "Revert "Second attempt: health check service: rewrite using callback … ( #29813 )" ( #30168 )
...
This reverts commit 897bc2c100
.
3 years ago
Craig Tiller
897bc2c100
Revert "Second attempt: health check service: rewrite using callback … ( #29813 )
...
* Revert "Second attempt: health check service: rewrite using callback API (#29562 )"
This reverts commit 90ee4e85f5
.
* Automated change: Fix sanity tests
* iwyu
* iwyu fix
* Automated change: Fix sanity tests
* fix
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Craig Tiller
0f9d024fec
[iwyu] c++ ( #29721 )
...
* Revert "Revert "[iwyu] grpc++ (#29610 )" (#29720 )"
This reverts commit 0642bc213d
.
* fixup status_code_enum import issue
* fix
* Automated change: Fix sanity tests
* import fixes
* fix import
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Craig Tiller
0642bc213d
Revert "[iwyu] grpc++ ( #29610 )" ( #29720 )
...
This reverts commit c8159eabdf
.
3 years ago
Craig Tiller
c8159eabdf
[iwyu] grpc++ ( #29610 )
...
* [iwyu] grpc++
* fix
* fix
* Automated change: Fix sanity tests
* fix
* fix
* fix
* [iwyu] Better script
* eliminate race
* fixes
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
AJ Heller
93e6894485
Revert "Fix gRPC C++ init bug ( #29689 )" ( #29701 )
...
This reverts commit de613e3a9e
.
3 years ago
Esun Kim
de613e3a9e
Fix gRPC C++ init bug ( #29689 )
3 years ago
Mark D. Roth
90ee4e85f5
Second attempt: health check service: rewrite using callback API ( #29562 )
...
* Revert "Revert "health check service: rewrite using callback API (#29457 )" (#29559 )"
This reverts commit d4680eb8eb
.
* don't register callback generic service if there is an async generic service
* fix edge case in shutdown
* don't call Finish() more than once
* add log message to help debugging
* don't start a new write after calling Finish()
3 years ago
Craig Tiller
d4680eb8eb
Revert "health check service: rewrite using callback API ( #29457 )" ( #29559 )
...
This reverts commit 2b00c7d2ad
.
3 years ago
Mark D. Roth
2b00c7d2ad
health check service: rewrite using callback API ( #29457 )
3 years ago
Mark D. Roth
0bdb4d650b
Revert "Revert "use CppImplOf for grpc_server ( #28112 )" ( #28130 )" ( #28144 )
...
This reverts commit eec0ca98c1
.
3 years ago
Mark D. Roth
eec0ca98c1
Revert "use CppImplOf for grpc_server ( #28112 )" ( #28130 )
...
This reverts commit 2ea8e50c3a
.
3 years ago
Mark D. Roth
2ea8e50c3a
use CppImplOf for grpc_server ( #28112 )
...
* use CppImplOf for grpc_server
* fix build
* fix sanity
3 years ago
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
4 years ago
Tamir Duberstein
013e67a029
Deprecate grpc{_core,::internal}::WaitUntil ( #26866 )
...
It is not possible for such a function to be implemented in a way that
is understood by annotalysis. Mark it deprecated and replace instances
of its use with direct mutex/condvar usage.
Add a bunch of missing thread safety annotations while I'm here.
4 years ago
Vijay Pai
ea4b68e7a1
Drop experimental tags from core callback API ( #26535 )
4 years ago
Vijay Pai
cf1ebf7387
Remove experimental tag from uses of the C++ callback API ( #26495 )
4 years ago
Alisha Nanda
cbcb0253a0
Additional logging for proto deserialization ( #26159 )
...
* Fix build failures in xds_end2end_test
* Change Status::OK to StatusCode::OK
* Added additional logging for proto deserialization failure
* Added additional logging for serialization failure
* Revert "Added additional logging for serialization failure"
This reverts commit 2dbbbed9d4
.
* Revert "Added additional logging for proto deserialization failure"
This reverts commit 31f4e6e3c8
.
* Move error logging for proto deserialization to server.cc
* Updated from GPR_ERROR to GPR_DEBUG
4 years ago
Vijay Pai
edf500fb82
Add useful status error message when server threadpool is exhausted ( #26146 )
4 years ago
Vijay Pai
dc6948cf35
Use atomics to remove locks in Channel/Server::CallbackCQ() ( #26091 )
4 years ago
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
4 years ago
Vijay Pai
37bd0a0cbd
Fix race at server shutdown between actual shutdown and MatchOrQueue ( #25541 )
...
* Fix race at server shutdown between actual shutdown and MatchOrQueue
* Address reviewer comments
* Add thread safety annotations
* Address reviewer comments
4 years ago
Vijay Pai
2a656ce68b
Don't dynamically allocate default server context ( #25576 )
4 years ago
Vijay Pai
1f91c57f6b
Remove an incorrect debug assertion
4 years ago
Vijay Pai
dba8bb59a0
Implement callback CQ at C++ layer using shared thread pool if non-background iomgr
4 years ago
AJ Heller
8261d9de15
Fix unused variable error from PR #25401
4 years ago
Esun Kim
6468d8a69d
Make grpcpp/mutex compatible absl/mutex
4 years ago
Vijay Pai
9cceb28b2e
Use AllocatingRequestMatcher for sync C++ server and simplify
4 years ago