grpc/test/cpp/end2end
Yash Tibrewal 06b55bdaa4
[RegisteredMethod] Set information on initial metadata about whether method is registered or not (#34432)
Summary - 
On the server-side, we are changing the point at which we decide whether
a method is registered or not from the surface to the transport at the
point where we are done receiving initial metadata and before we invoke
the recv_initial_metadata_ready closures from the filters. The main
motivation for this is to allow filters to check whether the incoming
method is a registered or not. The exact use-case is for observability
where we only want to record the method if it is registered. We store
the information about the registered method in the initial metadata.

On the client-side, we also set information about whether the method is
registered or not in the outgoing initial metadata.

Since we are effectively changing the lookup point of the registered
method, there are slight concerns of this being a potentially breaking
change, so we are guarding this with an experiment to be safe.

Changes - 
* Transport API changes -
* Along with `accept_stream_fn`, a new callback
`registered_method_matcher_cb` will be sent down as a transport op on
the server side. When initial metadata is received on the server side,
this callback is invoked. This happens before invoking the
`recv_initial_metadata_ready` closure.
* Metadata changes -
* We add a new non-serializable metadata trait `GrpcRegisteredMethod()`.
On the client-side, the value is a uintptr_t with a value of 1 if the
call has a registered/known method, or 0, if it's not known. On the
server side, the value is a (ChannelRegisteredMethod*). This metadata
information can be used throughout the stack to check whether a call is
registered or not.
* Server Changes -
* When a new transport connection is accepted, the server sets
`registered_method_matcher_cb` along with `accept_stream_fn`. This
function checks whether the method is registered or not and sets the
RegisteredMethod matcher in the metadata for use later.
* Client Changes -
* Set the metadata on call creation on whether the method is registered
or not.
2023-09-22 13:13:16 -07:00
..
xds [xds ssa] Remove environment variable protection for stateful affinity (#34435) 2023-09-22 13:06:51 -07:00
BUILD [RegisteredMethod] Set information on initial metadata about whether method is registered or not (#34432) 2023-09-22 13:13:16 -07:00
admin_services_end2end_test.cc Refactor end2end tests to exercise each EventEngine (#29202) 2022-03-30 15:43:05 -07:00
async_end2end_test.cc Reland global config changes (#32661) 2023-03-27 18:55:24 -07:00
cfstream_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
channelz_service_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
client_callback_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
client_crash_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
client_crash_test_server.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
client_interceptors_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
client_lb_end2end_test.cc [work-serializer] Fix synchronous test assumption (#34392) 2023-09-18 09:27:49 -07:00
connection_attempt_injector.cc EventEngine::RunAfter migration ConnectionAttemptInjector (#31865) 2022-12-13 11:14:40 -08:00
connection_attempt_injector.h EventEngine::RunAfter migration ConnectionAttemptInjector (#31865) 2022-12-13 11:14:40 -08:00
context_allocator_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
counted_service.h Revert "Revert "start splitting up xds_end2end_test (#27702)" (#27725)" (#27726) 2021-10-14 11:41:45 -07:00
delegating_channel_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
end2end_test.cc [promises] Run C++ end to end tests with server promises (#32537) 2023-04-06 12:32:23 -07:00
exception_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
filter_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
flaky_network_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
generic_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
grpc_authz_end2end_test.cc [Audit Logging] End2end test for audit logging in authorization policy (#33196) 2023-05-24 14:09:32 -07:00
grpclb_end2end_test.cc [grpclb e2e test] increase RPC deadlines to fix flakes (#34403) 2023-09-19 11:29:34 -07:00
health_service_end2end_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
hybrid_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
interceptors_util.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
interceptors_util.h Fix include guards for src/ and test/ directories (#32167) 2023-01-20 16:27:27 -08:00
message_allocator_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
mock_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
nonblocking_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
orca_service_end2end_test.cc [WRR] Prefer application_utilization to cpu_utilization (#33355) 2023-06-07 17:38:29 -07:00
port_sharing_end2end_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
proto_server_reflection_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
raw_end2end_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
resource_quota_end2end_stress_test.cc [resource quota] Reduce stress test size to prevent OOMs (#33776) 2023-07-19 16:41:19 -07:00
rls_end2end_test.cc [work-serializer] Dispatch on run experiment (relanding) (#34372) 2023-09-15 12:46:04 -07:00
rls_server.cc xDS RLS implementation (#29200) 2022-03-23 21:23:34 -07:00
rls_server.h Fix include guards for src/ and test/ directories (#32167) 2023-01-20 16:27:27 -08:00
server_builder_plugin_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
server_crash_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
server_crash_test_client.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
server_early_return_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
server_interceptors_end2end_test.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
server_load_reporting_end2end_test.cc Reland global config changes (#32661) 2023-03-27 18:55:24 -07:00
service_config_end2end_test.cc [work-serializer] Dispatch on run experiment (relanding) (#34372) 2023-09-15 12:46:04 -07:00
shutdown_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
ssl_credentials_test.cc [Security] Move ownership of tsi_ssl_client_handshaker_factory to grpc_ssl_credentials, version 2. (#34408) 2023-09-21 10:07:18 -07:00
streaming_throughput_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
test_health_check_service_impl.cc Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
test_health_check_service_impl.h Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
test_service_impl.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
test_service_impl.h [promises] Run C++ end to end tests with server promises (#32537) 2023-04-06 12:32:23 -07:00
thread_stress_test.cc [flake] Remove inproc thread stress tests (#32283) 2023-02-07 08:58:41 -08:00
time_change_test.cc [cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757) 2023-01-11 08:50:32 -08:00
tls_key_export_test.cc [OpenSSL] Support for OpenSSL 3 (#31256) 2023-08-21 17:42:32 -04:00