grpc 1.43.1 → 1.53.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +765 -449
- data/include/grpc/byte_buffer.h +76 -1
- data/include/grpc/byte_buffer_reader.h +19 -1
- data/include/grpc/compression.h +2 -2
- data/include/grpc/event_engine/endpoint_config.h +11 -5
- data/include/grpc/event_engine/event_engine.h +131 -41
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +1 -1
- data/include/grpc/event_engine/internal/slice_cast.h +67 -0
- data/include/grpc/event_engine/memory_allocator.h +1 -16
- data/include/grpc/event_engine/port.h +1 -1
- data/include/grpc/event_engine/slice.h +306 -0
- data/include/grpc/event_engine/slice_buffer.h +159 -0
- data/include/grpc/fork.h +25 -1
- data/include/grpc/grpc.h +44 -28
- data/include/grpc/grpc_posix.h +21 -20
- data/include/grpc/grpc_security.h +47 -50
- data/include/grpc/impl/codegen/atm.h +3 -71
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +3 -67
- data/include/grpc/impl/codegen/atm_gcc_sync.h +3 -61
- data/include/grpc/impl/codegen/atm_windows.h +3 -108
- data/include/grpc/impl/codegen/byte_buffer.h +4 -78
- data/include/grpc/impl/codegen/byte_buffer_reader.h +4 -19
- data/include/grpc/impl/codegen/compression_types.h +5 -85
- data/include/grpc/impl/codegen/connectivity_state.h +5 -21
- data/include/grpc/impl/codegen/fork.h +4 -25
- data/include/grpc/impl/codegen/gpr_types.h +4 -35
- data/include/grpc/impl/codegen/grpc_types.h +5 -788
- data/include/grpc/impl/codegen/log.h +3 -86
- data/include/grpc/impl/codegen/port_platform.h +3 -699
- data/include/grpc/impl/codegen/propagation_bits.h +3 -28
- data/include/grpc/impl/codegen/slice.h +4 -104
- data/include/grpc/impl/codegen/status.h +4 -131
- data/include/grpc/impl/codegen/sync.h +3 -42
- data/include/grpc/impl/codegen/sync_abseil.h +3 -12
- data/include/grpc/impl/codegen/sync_custom.h +3 -14
- data/include/grpc/impl/codegen/sync_generic.h +3 -25
- data/include/grpc/impl/codegen/sync_posix.h +3 -28
- data/include/grpc/impl/codegen/sync_windows.h +3 -16
- data/include/grpc/impl/compression_types.h +109 -0
- data/include/grpc/impl/connectivity_state.h +47 -0
- data/include/grpc/impl/grpc_types.h +827 -0
- data/include/grpc/impl/propagation_bits.h +54 -0
- data/include/grpc/impl/slice_type.h +112 -0
- data/include/grpc/load_reporting.h +1 -1
- data/include/grpc/module.modulemap +5 -1
- data/include/grpc/slice.h +1 -12
- data/include/grpc/status.h +131 -1
- data/include/grpc/support/atm.h +70 -1
- data/include/grpc/support/atm_gcc_atomic.h +59 -1
- data/include/grpc/support/atm_gcc_sync.h +58 -1
- data/include/grpc/support/atm_windows.h +105 -1
- data/include/grpc/support/log.h +87 -1
- data/include/grpc/support/log_windows.h +1 -1
- data/include/grpc/support/port_platform.h +767 -1
- data/include/grpc/support/string_util.h +1 -1
- data/include/grpc/support/sync.h +35 -2
- data/include/grpc/support/sync_abseil.h +11 -1
- data/include/grpc/support/sync_custom.h +13 -1
- data/include/grpc/support/sync_generic.h +24 -1
- data/include/grpc/support/sync_posix.h +27 -1
- data/include/grpc/support/sync_windows.h +15 -1
- data/include/grpc/support/time.h +31 -6
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +148 -0
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +52 -0
- data/src/core/ext/filters/backend_metrics/backend_metric_provider.h +29 -0
- data/src/core/ext/filters/census/grpc_context.cc +19 -17
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +315 -0
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +142 -0
- data/src/core/ext/filters/channel_idle/idle_filter_state.cc +96 -0
- data/src/core/ext/filters/channel_idle/idle_filter_state.h +68 -0
- data/src/core/ext/filters/client_channel/backend_metric.cc +22 -15
- data/src/core/ext/filters/client_channel/backend_metric.h +21 -11
- data/src/core/ext/filters/client_channel/backup_poller.cc +44 -40
- data/src/core/ext/filters/client_channel/backup_poller.h +26 -28
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +94 -49
- data/src/core/ext/filters/client_channel/client_channel.cc +681 -648
- data/src/core/ext/filters/client_channel/client_channel.h +106 -61
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +19 -23
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +33 -23
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +19 -43
- data/src/core/ext/filters/client_channel/client_channel_factory.h +11 -11
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +26 -57
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +153 -0
- data/src/core/ext/filters/client_channel/client_channel_service_config.h +111 -0
- data/src/core/ext/filters/client_channel/config_selector.cc +1 -0
- data/src/core/ext/filters/client_channel/config_selector.h +33 -27
- data/src/core/ext/filters/client_channel/connector.h +20 -11
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +40 -55
- data/src/core/ext/filters/client_channel/dynamic_filters.h +22 -13
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +4 -22
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +27 -36
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +139 -583
- data/src/core/ext/filters/client_channel/health/health_check_client.h +29 -163
- data/src/core/ext/filters/client_channel/http_proxy.cc +130 -164
- data/src/core/ext/filters/client_channel/http_proxy.h +46 -22
- data/src/core/ext/filters/client_channel/lb_call_state_internal.h +39 -0
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +12 -8
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +9 -7
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +49 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +37 -16
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +18 -13
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +71 -134
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +41 -24
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +468 -413
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +27 -35
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +15 -3
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +10 -8
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +18 -20
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +27 -22
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +43 -34
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +30 -29
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +338 -0
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h +57 -0
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +117 -0
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +1129 -0
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +94 -0
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +221 -209
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +488 -480
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +525 -391
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +19 -9
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +726 -701
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +282 -254
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +177 -150
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +128 -0
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.h +71 -0
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +972 -0
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +289 -251
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +274 -201
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.cc +42 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.h +64 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +215 -264
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +213 -215
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +578 -667
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +819 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h +67 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +369 -0
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +4 -0
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +22 -21
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +42 -33
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +678 -336
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +67 -51
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +50 -45
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +109 -119
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +421 -420
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +95 -81
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +18 -18
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +21 -20
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.cc +2 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.h +22 -22
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +124 -255
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +37 -49
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +21 -6
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +190 -96
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +269 -0
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +121 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +56 -61
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +537 -338
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +6 -4
- data/src/core/ext/filters/client_channel/retry_filter.cc +392 -307
- data/src/core/ext/filters/client_channel/retry_filter.h +4 -3
- data/src/core/ext/filters/client_channel/retry_service_config.cc +198 -232
- data/src/core/ext/filters/client_channel/retry_service_config.h +44 -35
- data/src/core/ext/filters/client_channel/retry_throttle.cc +37 -60
- data/src/core/ext/filters/client_channel/retry_throttle.h +47 -34
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +40 -22
- data/src/core/ext/filters/client_channel/subchannel.cc +343 -402
- data/src/core/ext/filters/client_channel/subchannel.h +116 -86
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +38 -0
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +17 -77
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +41 -47
- data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +470 -0
- data/src/core/ext/filters/client_channel/subchannel_stream_client.h +222 -0
- data/src/core/ext/filters/deadline/deadline_filter.cc +102 -83
- data/src/core/ext/filters/deadline/deadline_filter.h +17 -14
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +180 -403
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +41 -9
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +118 -0
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +112 -0
- data/src/core/ext/filters/http/client/http_client_filter.cc +123 -548
- data/src/core/ext/filters/http/client/http_client_filter.h +55 -25
- data/src/core/ext/filters/http/client_authority_filter.cc +60 -129
- data/src/core/ext/filters/http/client_authority_filter.h +49 -27
- data/src/core/ext/filters/http/http_filters_plugin.cc +53 -60
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +307 -0
- data/src/core/ext/filters/http/message_compress/compression_filter.h +139 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +116 -474
- data/src/core/ext/filters/http/server/http_server_filter.h +58 -24
- data/src/core/ext/filters/message_size/message_size_filter.cc +137 -165
- data/src/core/ext/filters/message_size/message_size_filter.h +44 -20
- data/src/core/ext/filters/rbac/rbac_filter.cc +175 -0
- data/src/core/ext/filters/rbac/rbac_filter.h +84 -0
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +819 -0
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +86 -0
- data/src/core/ext/filters/server_config_selector/server_config_selector.h +23 -10
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +93 -199
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.h +4 -3
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +219 -0
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +66 -0
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.cc +82 -0
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +93 -0
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +18 -18
- data/src/core/ext/transport/chttp2/alpn/alpn.h +24 -24
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +316 -137
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +38 -30
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +378 -182
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +26 -26
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +24 -24
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +35 -34
- data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +31 -30
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +29 -29
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +972 -1236
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +36 -25
- data/src/core/ext/transport/chttp2/transport/context_list.cc +23 -19
- data/src/core/ext/transport/chttp2/transport/context_list.h +32 -29
- data/src/core/ext/transport/chttp2/transport/decode_huff.cc +251 -0
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +971 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +351 -301
- data/src/core/ext/transport/chttp2/transport/flow_control.h +249 -326
- data/src/core/ext/transport/chttp2/transport/frame.h +22 -26
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +85 -235
- data/src/core/ext/transport/chttp2/transport/frame_data.h +38 -61
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +41 -36
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +24 -22
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +34 -28
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +25 -22
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +40 -26
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +24 -21
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +46 -77
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +27 -23
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +34 -33
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +24 -21
- data/src/core/ext/transport/chttp2/transport/hpack_constants.h +10 -4
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +432 -422
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +127 -219
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +5 -2
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +15 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +143 -620
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +31 -25
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +162 -61
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +71 -71
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +21 -19
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +39 -38
- data/src/core/ext/transport/chttp2/transport/http_trace.cc +19 -0
- data/src/core/ext/transport/chttp2/transport/http_trace.h +24 -0
- data/src/core/ext/transport/chttp2/transport/huffsyms.cc +20 -20
- data/src/core/ext/transport/chttp2/transport/huffsyms.h +21 -21
- data/src/core/ext/transport/chttp2/transport/internal.h +257 -338
- data/src/core/ext/transport/chttp2/transport/parsing.cc +367 -140
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +30 -30
- data/src/core/ext/transport/chttp2/transport/stream_map.cc +24 -24
- data/src/core/ext/transport/chttp2/transport/stream_map.h +34 -33
- data/src/core/ext/transport/chttp2/transport/varint.cc +19 -20
- data/src/core/ext/transport/chttp2/transport/varint.h +39 -34
- data/src/core/ext/transport/chttp2/transport/writing.cc +199 -227
- data/src/core/ext/transport/inproc/inproc_plugin.cc +17 -22
- data/src/core/ext/transport/inproc/inproc_transport.cc +252 -347
- data/src/core/ext/transport/inproc/inproc_transport.h +23 -24
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +117 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +502 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +122 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +578 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +46 -359
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +280 -1357
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +388 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +1953 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +56 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +159 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +64 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +189 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +128 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +106 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +101 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +106 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +613 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +107 -0
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +14 -12
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +49 -16
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +13 -11
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +53 -23
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +98 -96
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +729 -386
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +191 -173
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +1403 -664
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +34 -26
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +212 -91
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +256 -250
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +1774 -852
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +10 -8
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +46 -24
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +49 -27
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +276 -99
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +299 -0
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +1437 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +78 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +519 -190
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +11 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +49 -25
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +159 -154
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +1178 -584
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +87 -42
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +553 -167
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +9 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +42 -24
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +11 -29
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +45 -101
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +58 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +159 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +108 -104
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +820 -410
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +118 -84
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +813 -358
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +11 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +61 -31
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +164 -108
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +1082 -399
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +8 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +32 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +15 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +91 -49
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +29 -12
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +140 -34
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +15 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +97 -49
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +11 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +50 -26
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +34 -32
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +206 -109
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +58 -49
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +405 -191
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +49 -47
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +377 -188
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +9 -7
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +38 -21
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +101 -64
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +684 -261
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +77 -69
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +588 -301
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +21 -15
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +130 -49
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +15 -10
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +98 -41
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +140 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +58 -55
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +445 -235
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +62 -60
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +442 -237
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +98 -77
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +672 -294
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +46 -36
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +301 -163
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +589 -475
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +4357 -1895
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +25 -19
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +160 -72
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +241 -0
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +1191 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +45 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +101 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +49 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +107 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +15 -13
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +85 -46
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +52 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +138 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +254 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +47 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +107 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +47 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +98 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +69 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +221 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +33 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +43 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +71 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +226 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +55 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +159 -0
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +8 -6
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +38 -24
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +29 -27
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +208 -113
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +36 -34
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +272 -132
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +71 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +237 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +19 -14
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +113 -43
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +62 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +179 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +239 -197
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +1708 -734
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +98 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +54 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +188 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +111 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +444 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +56 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +192 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +98 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +3 -1
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +2 -1
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +89 -58
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +606 -235
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +26 -24
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +168 -87
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +100 -71
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +672 -263
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +62 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +168 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +6 -4
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +26 -16
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +185 -66
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +1118 -256
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +18 -16
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +115 -62
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +52 -50
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +367 -186
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +116 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +20 -18
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +140 -82
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +47 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +113 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +74 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +230 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +16 -14
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +107 -57
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +10 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +54 -31
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +10 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +52 -27
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +9 -7
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +42 -24
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +21 -19
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +129 -69
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +114 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +19 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +131 -65
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +14 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +93 -53
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +23 -21
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +162 -83
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +32 -30
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +258 -146
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +36 -34
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +255 -131
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +66 -0
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +213 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +3 -1
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +2 -1
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +42 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +143 -0
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +13 -11
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +70 -36
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +19 -17
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +110 -52
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +202 -0
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +26 -0
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +43 -0
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +10 -8
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +44 -19
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +51 -0
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +131 -0
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +8 -6
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +22 -6
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +109 -103
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +764 -382
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +120 -112
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +843 -402
- data/src/core/ext/upb-generated/google/api/http.upb.c +29 -27
- data/src/core/ext/upb-generated/google/api/http.upb.h +228 -115
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +46 -0
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +115 -0
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +9 -7
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +42 -22
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +292 -237
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +2198 -1030
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +9 -7
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +40 -20
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +6 -4
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +26 -16
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +31 -29
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +189 -93
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +9 -7
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +40 -20
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +40 -38
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +276 -149
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +11 -9
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +56 -30
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +84 -0
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +335 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +21 -19
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +107 -48
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +102 -96
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +725 -359
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +16 -13
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +84 -41
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +12 -10
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +64 -35
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +57 -55
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +419 -219
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +22 -20
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +123 -63
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +175 -0
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +792 -0
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +36 -34
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +201 -78
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +14 -12
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +57 -22
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +7 -5
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +15 -6
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +14 -12
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +59 -24
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +13 -11
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +53 -23
- data/src/core/ext/upb-generated/validate/validate.upb.c +339 -312
- data/src/core/ext/upb-generated/validate/validate.upb.h +2818 -1180
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +110 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +290 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +55 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +112 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +38 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +46 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +34 -32
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +187 -80
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +53 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +103 -0
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +8 -6
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +34 -19
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +47 -0
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +107 -0
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +18 -16
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +106 -55
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +14 -12
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +57 -30
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +46 -0
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +107 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +12 -10
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +59 -30
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +20 -18
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +138 -70
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +12 -10
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +62 -30
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +24 -21
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +114 -46
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +46 -0
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +113 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +46 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +98 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +62 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +174 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +36 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +74 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +65 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +191 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +207 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +914 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +127 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +474 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +52 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +151 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +65 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +226 -0
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +67 -0
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +214 -0
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +64 -0
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +208 -0
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +10 -9
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +46 -24
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +84 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +128 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +73 -278
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +16 -101
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +277 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +125 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +142 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +8 -6
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +8 -6
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +118 -115
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +46 -46
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +257 -237
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +55 -55
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +58 -51
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +394 -370
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +73 -78
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +14 -11
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +23 -16
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +206 -0
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +101 -79
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +27 -22
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +203 -194
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +73 -73
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +138 -101
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +26 -16
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +14 -12
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +22 -34
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +4 -9
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +21 -18
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +43 -43
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +182 -165
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +30 -25
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +14 -12
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +252 -219
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +53 -43
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +12 -9
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +14 -11
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +18 -11
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +9 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +24 -21
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +13 -11
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +18 -15
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +81 -73
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +19 -19
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +18 -15
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +14 -11
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +180 -146
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +24 -19
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +153 -147
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +26 -19
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +44 -33
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +69 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +17 -14
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +25 -25
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +17 -14
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +28 -28
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +201 -0
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +91 -74
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +902 -806
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +180 -160
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +52 -37
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +199 -0
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +90 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +72 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +99 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +79 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +15 -11
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +17 -14
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +18 -15
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +80 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +59 -44
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +506 -463
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +63 -58
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +15 -11
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +172 -140
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +24 -19
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +19 -16
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +220 -198
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +24 -19
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +58 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +14 -11
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +163 -88
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +57 -22
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +16 -13
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +123 -120
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +13 -10
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +36 -32
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +15 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +14 -12
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +16 -13
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +13 -10
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +14 -11
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +10 -8
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +94 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +12 -10
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +11 -8
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +69 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +11 -9
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +154 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +153 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +94 -92
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +82 -82
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +3 -3
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +28 -28
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +67 -0
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +99 -0
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +6 -6
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +70 -70
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +41 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +6 -6
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +6 -6
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +6 -6
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +126 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +6 -9
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +4 -4
- data/src/core/ext/xds/certificate_provider_store.cc +75 -3
- data/src/core/ext/xds/certificate_provider_store.h +30 -4
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +21 -14
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +14 -6
- data/src/core/ext/xds/upb_utils.h +45 -0
- data/src/core/ext/xds/xds_api.cc +294 -3740
- data/src/core/ext/xds/xds_api.h +82 -635
- data/src/core/ext/xds/xds_bootstrap.cc +10 -446
- data/src/core/ext/xds/xds_bootstrap.h +46 -83
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +362 -0
- data/src/core/ext/xds/xds_bootstrap_grpc.h +184 -0
- data/src/core/ext/xds/xds_certificate_provider.cc +36 -25
- data/src/core/ext/xds/xds_certificate_provider.h +37 -4
- data/src/core/ext/xds/xds_channel_args.h +3 -3
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +27 -20
- data/src/core/ext/xds/xds_channel_stack_modifier.h +20 -7
- data/src/core/ext/xds/xds_client.cc +1247 -2097
- data/src/core/ext/xds/xds_client.h +159 -204
- data/src/core/ext/xds/xds_client_grpc.cc +235 -0
- data/src/core/ext/xds/xds_client_grpc.h +79 -0
- data/src/core/ext/xds/xds_client_stats.cc +35 -36
- data/src/core/ext/xds/xds_client_stats.h +31 -28
- data/src/core/ext/xds/xds_cluster.cc +711 -0
- data/src/core/ext/xds/xds_cluster.h +137 -0
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +132 -0
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +97 -0
- data/src/core/ext/xds/xds_common_types.cc +503 -0
- data/src/core/ext/xds/xds_common_types.h +108 -0
- data/src/core/ext/xds/xds_endpoint.cc +474 -0
- data/src/core/ext/xds/xds_endpoint.h +139 -0
- data/src/core/ext/xds/xds_health_status.cc +80 -0
- data/src/core/ext/xds/xds_health_status.h +109 -0
- data/src/core/ext/xds/xds_http_fault_filter.cc +68 -59
- data/src/core/ext/xds/xds_http_fault_filter.h +20 -26
- data/src/core/ext/xds/xds_http_filters.cc +71 -66
- data/src/core/ext/xds/xds_http_filters.h +74 -26
- data/src/core/ext/xds/xds_http_rbac_filter.cc +506 -0
- data/src/core/ext/xds/xds_http_rbac_filter.h +58 -0
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +218 -0
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +58 -0
- data/src/core/ext/xds/xds_lb_policy_registry.cc +334 -0
- data/src/core/ext/xds/xds_lb_policy_registry.h +71 -0
- data/src/core/ext/xds/xds_listener.cc +1131 -0
- data/src/core/ext/xds/xds_listener.h +226 -0
- data/src/core/ext/xds/xds_resource_type.h +104 -0
- data/src/core/ext/xds/xds_resource_type_impl.h +88 -0
- data/src/core/ext/xds/xds_route_config.cc +1144 -0
- data/src/core/ext/xds/xds_route_config.h +252 -0
- data/src/core/ext/xds/xds_routing.cc +33 -16
- data/src/core/ext/xds/xds_routing.h +25 -17
- data/src/core/ext/xds/xds_server_config_fetcher.cc +386 -281
- data/src/core/ext/xds/xds_transport.h +86 -0
- data/src/core/ext/xds/xds_transport_grpc.cc +356 -0
- data/src/core/ext/xds/xds_transport_grpc.h +135 -0
- data/src/core/lib/address_utils/parse_address.cc +55 -35
- data/src/core/lib/address_utils/parse_address.h +46 -37
- data/src/core/lib/address_utils/sockaddr_utils.cc +112 -79
- data/src/core/lib/address_utils/sockaddr_utils.h +45 -55
- data/src/core/lib/avl/avl.h +100 -13
- data/src/core/lib/backoff/backoff.cc +26 -57
- data/src/core/lib/backoff/backoff.h +32 -32
- data/src/core/lib/channel/call_finalization.h +88 -0
- data/src/core/lib/channel/call_tracer.h +27 -9
- data/src/core/lib/channel/channel_args.cc +291 -65
- data/src/core/lib/channel/channel_args.h +461 -54
- data/src/core/lib/channel/channel_args_preconditioning.cc +6 -10
- data/src/core/lib/channel/channel_args_preconditioning.h +7 -7
- data/src/core/lib/channel/channel_fwd.h +26 -0
- data/src/core/lib/channel/channel_stack.cc +100 -53
- data/src/core/lib/channel/channel_stack.h +212 -130
- data/src/core/lib/channel/channel_stack_builder.cc +35 -295
- data/src/core/lib/channel/channel_stack_builder.h +115 -153
- data/src/core/lib/channel/channel_stack_builder_impl.cc +126 -0
- data/src/core/lib/channel/channel_stack_builder_impl.h +48 -0
- data/src/core/lib/channel/channel_trace.cc +29 -39
- data/src/core/lib/channel/channel_trace.h +27 -24
- data/src/core/lib/channel/channelz.cc +51 -65
- data/src/core/lib/channel/channelz.h +50 -33
- data/src/core/lib/channel/channelz_registry.cc +28 -36
- data/src/core/lib/channel/channelz_registry.h +31 -30
- data/src/core/lib/channel/connected_channel.cc +1269 -75
- data/src/core/lib/channel/connected_channel.h +23 -24
- data/src/core/lib/channel/context.h +36 -21
- data/src/core/lib/channel/promise_based_filter.cc +2521 -0
- data/src/core/lib/channel/promise_based_filter.h +937 -0
- data/src/core/lib/channel/status_util.cc +64 -17
- data/src/core/lib/channel/status_util.h +38 -24
- data/src/core/lib/compression/compression.cc +44 -131
- data/src/core/lib/compression/compression_internal.cc +189 -230
- data/src/core/lib/compression/compression_internal.h +90 -94
- data/src/core/lib/compression/message_compress.cc +39 -37
- data/src/core/lib/compression/message_compress.h +30 -31
- data/src/core/lib/config/core_configuration.cc +15 -2
- data/src/core/lib/config/core_configuration.h +125 -39
- data/src/core/lib/debug/event_log.cc +88 -0
- data/src/core/lib/debug/event_log.h +81 -0
- data/src/core/lib/debug/histogram_view.cc +69 -0
- data/src/core/lib/debug/histogram_view.h +37 -0
- data/src/core/lib/debug/stats.cc +48 -152
- data/src/core/lib/debug/stats.h +50 -57
- data/src/core/lib/debug/stats_data.cc +302 -649
- data/src/core/lib/debug/stats_data.h +293 -548
- data/src/core/lib/debug/trace.cc +18 -20
- data/src/core/lib/debug/trace.h +27 -48
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +16 -17
- data/src/core/lib/event_engine/channel_args_endpoint_config.h +16 -9
- data/src/core/lib/event_engine/common_closures.h +71 -0
- data/src/core/lib/event_engine/default_event_engine.cc +99 -0
- data/src/core/lib/event_engine/default_event_engine.h +73 -0
- data/src/core/lib/event_engine/default_event_engine_factory.cc +48 -0
- data/src/core/lib/event_engine/default_event_engine_factory.h +33 -0
- data/src/core/lib/event_engine/event_engine.cc +3 -15
- data/src/core/lib/event_engine/executor/executor.h +38 -0
- data/src/core/lib/event_engine/forkable.cc +106 -0
- data/src/core/lib/event_engine/forkable.h +61 -0
- data/src/core/lib/event_engine/handle_containers.h +74 -0
- data/src/core/lib/event_engine/memory_allocator.cc +19 -15
- data/src/core/lib/event_engine/poller.h +62 -0
- data/src/core/lib/event_engine/posix.h +158 -0
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +642 -0
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +139 -0
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +899 -0
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +97 -0
- data/src/core/lib/event_engine/posix_engine/event_poller.h +111 -0
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +74 -0
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +33 -0
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +77 -0
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.h +179 -0
- data/src/core/lib/event_engine/posix_engine/lockfree_event.cc +265 -0
- data/src/core/lib/event_engine/posix_engine/lockfree_event.h +73 -0
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +1305 -0
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +717 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +640 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +259 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_closure.h +80 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +289 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +279 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +379 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h +91 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +853 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +316 -0
- data/src/core/lib/event_engine/posix_engine/timer.cc +311 -0
- data/src/core/lib/event_engine/posix_engine/timer.h +194 -0
- data/src/core/lib/event_engine/posix_engine/timer_heap.cc +107 -0
- data/src/core/lib/event_engine/posix_engine/timer_heap.h +56 -0
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +173 -0
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +114 -0
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +332 -0
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.h +185 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +127 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h +45 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +150 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h +45 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h +76 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc +67 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.h +37 -0
- data/src/core/lib/event_engine/resolved_address.cc +60 -0
- data/src/core/lib/event_engine/resolved_address_internal.h +34 -0
- data/src/core/lib/event_engine/shim.cc +56 -0
- data/src/core/lib/event_engine/shim.h +33 -0
- data/src/core/lib/event_engine/slice.cc +103 -0
- data/src/core/lib/event_engine/slice_buffer.cc +50 -0
- data/src/core/lib/event_engine/tcp_socket_utils.cc +389 -0
- data/src/core/lib/event_engine/tcp_socket_utils.h +90 -0
- data/src/core/lib/event_engine/thread_local.cc +29 -0
- data/src/core/lib/event_engine/thread_local.h +32 -0
- data/src/core/lib/event_engine/thread_pool.cc +253 -0
- data/src/core/lib/event_engine/thread_pool.h +141 -0
- data/src/core/lib/event_engine/time_util.cc +30 -0
- data/src/core/lib/event_engine/time_util.h +32 -0
- data/src/core/lib/event_engine/trace.cc +24 -0
- data/src/core/lib/event_engine/trace.h +43 -0
- data/src/core/lib/event_engine/utils.cc +44 -0
- data/src/core/lib/event_engine/utils.h +44 -0
- data/src/core/lib/event_engine/windows/iocp.cc +140 -0
- data/src/core/lib/event_engine/windows/iocp.h +69 -0
- data/src/core/lib/event_engine/windows/win_socket.cc +219 -0
- data/src/core/lib/event_engine/windows/win_socket.h +129 -0
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +331 -0
- data/src/core/lib/event_engine/windows/windows_endpoint.h +103 -0
- data/src/core/lib/event_engine/windows/windows_engine.cc +388 -0
- data/src/core/lib/event_engine/windows/windows_engine.h +163 -0
- data/src/core/lib/experiments/config.cc +161 -0
- data/src/core/lib/experiments/config.h +53 -0
- data/src/core/lib/experiments/experiments.cc +81 -0
- data/src/core/lib/experiments/experiments.h +117 -0
- data/src/core/lib/gpr/alloc.cc +19 -25
- data/src/core/lib/gpr/alloc.h +20 -20
- data/src/core/lib/gpr/atm.cc +17 -17
- data/src/core/lib/gpr/cpu_iphone.cc +24 -24
- data/src/core/lib/gpr/cpu_linux.cc +28 -23
- data/src/core/lib/gpr/cpu_posix.cc +23 -22
- data/src/core/lib/gpr/cpu_windows.cc +20 -18
- data/src/core/lib/gpr/log.cc +30 -17
- data/src/core/lib/gpr/log_android.cc +22 -20
- data/src/core/lib/gpr/log_linux.cc +24 -24
- data/src/core/lib/gpr/log_posix.cc +20 -19
- data/src/core/lib/gpr/log_windows.cc +25 -25
- data/src/core/lib/gpr/spinlock.h +20 -20
- data/src/core/lib/gpr/string.cc +25 -24
- data/src/core/lib/gpr/string.h +61 -61
- data/src/core/lib/gpr/string_posix.cc +24 -24
- data/src/core/lib/gpr/string_util_windows.cc +25 -52
- data/src/core/lib/gpr/string_windows.cc +24 -24
- data/src/core/lib/gpr/sync.cc +25 -25
- data/src/core/lib/gpr/sync_abseil.cc +36 -40
- data/src/core/lib/gpr/sync_posix.cc +23 -34
- data/src/core/lib/gpr/sync_windows.cc +29 -27
- data/src/core/lib/gpr/time.cc +36 -31
- data/src/core/lib/gpr/time_posix.cc +41 -45
- data/src/core/lib/gpr/time_precise.cc +22 -22
- data/src/core/lib/gpr/time_precise.h +21 -22
- data/src/core/lib/gpr/time_windows.cc +35 -29
- data/src/core/lib/gpr/tmpfile.h +24 -24
- data/src/core/lib/gpr/tmpfile_msys.cc +21 -20
- data/src/core/lib/gpr/tmpfile_posix.cc +22 -20
- data/src/core/lib/gpr/tmpfile_windows.cc +28 -29
- data/src/core/lib/gpr/useful.h +101 -30
- data/src/core/lib/gpr/wrap_memcpy.cc +23 -23
- data/src/core/lib/gprpp/atomic_utils.h +20 -20
- data/src/core/lib/gprpp/bitset.h +54 -17
- data/src/core/lib/gprpp/chunked_vector.h +52 -6
- data/src/core/lib/gprpp/construct_destruct.h +4 -3
- data/src/core/lib/gprpp/cpp_impl_of.h +7 -3
- data/src/core/lib/gprpp/crash.cc +33 -0
- data/src/core/lib/gprpp/crash.h +34 -0
- data/src/core/lib/gprpp/debug_location.h +62 -31
- data/src/core/lib/gprpp/dual_ref_counted.h +4 -7
- data/src/core/lib/gprpp/env.h +53 -0
- data/src/core/lib/gprpp/env_linux.cc +80 -0
- data/src/core/lib/gprpp/env_posix.cc +47 -0
- data/src/core/lib/gprpp/env_windows.cc +56 -0
- data/src/core/lib/gprpp/examine_stack.cc +17 -17
- data/src/core/lib/gprpp/examine_stack.h +21 -22
- data/src/core/lib/gprpp/fork.cc +58 -53
- data/src/core/lib/gprpp/fork.h +29 -35
- data/src/core/lib/gprpp/global_config.h +22 -24
- data/src/core/lib/gprpp/global_config_custom.h +20 -20
- data/src/core/lib/gprpp/global_config_env.cc +28 -25
- data/src/core/lib/gprpp/global_config_env.h +29 -27
- data/src/core/lib/gprpp/global_config_generic.h +21 -25
- data/src/core/lib/gprpp/host_port.cc +30 -26
- data/src/core/lib/gprpp/host_port.h +32 -31
- data/src/core/lib/gprpp/load_file.cc +75 -0
- data/src/core/lib/gprpp/load_file.h +33 -0
- data/src/core/lib/gprpp/manual_constructor.h +21 -89
- data/src/core/lib/gprpp/match.h +75 -0
- data/src/core/lib/gprpp/memory.h +22 -26
- data/src/core/lib/gprpp/mpscq.cc +17 -17
- data/src/core/lib/gprpp/mpscq.h +21 -21
- data/src/core/lib/gprpp/no_destruct.h +95 -0
- data/src/core/lib/gprpp/notification.h +67 -0
- data/src/core/lib/gprpp/orphanable.h +22 -25
- data/src/core/lib/gprpp/overload.h +59 -0
- data/src/core/lib/gprpp/packed_table.h +40 -0
- data/src/core/lib/gprpp/per_cpu.h +46 -0
- data/src/core/lib/gprpp/ref_counted.h +24 -24
- data/src/core/lib/gprpp/ref_counted_ptr.h +42 -55
- data/src/core/lib/gprpp/single_set_ptr.h +87 -0
- data/src/core/lib/gprpp/sorted_pack.h +98 -0
- data/src/core/lib/gprpp/stat.h +3 -5
- data/src/core/lib/gprpp/stat_posix.cc +10 -4
- data/src/core/lib/gprpp/stat_windows.cc +4 -2
- data/src/core/lib/gprpp/status_helper.cc +79 -51
- data/src/core/lib/gprpp/status_helper.h +19 -24
- data/src/core/lib/gprpp/strerror.cc +43 -0
- data/src/core/lib/gprpp/strerror.h +29 -0
- data/src/core/lib/gprpp/sync.h +26 -24
- data/src/core/lib/gprpp/table.h +33 -4
- data/src/core/lib/gprpp/tchar.cc +49 -0
- data/src/core/lib/gprpp/tchar.h +33 -0
- data/src/core/lib/gprpp/thd.h +25 -28
- data/src/core/lib/gprpp/thd_posix.cc +33 -32
- data/src/core/lib/gprpp/thd_windows.cc +28 -26
- data/src/core/lib/gprpp/time.cc +241 -0
- data/src/core/lib/gprpp/time.h +366 -0
- data/src/core/lib/gprpp/time_averaged_stats.cc +60 -0
- data/src/core/lib/gprpp/time_averaged_stats.h +79 -0
- data/src/core/lib/gprpp/time_util.cc +4 -0
- data/src/core/lib/gprpp/time_util.h +3 -3
- data/src/core/lib/gprpp/unique_type_name.h +104 -0
- data/src/core/lib/gprpp/validation_errors.cc +61 -0
- data/src/core/lib/gprpp/validation_errors.h +127 -0
- data/src/core/lib/gprpp/work_serializer.cc +247 -0
- data/src/core/lib/gprpp/work_serializer.h +86 -0
- data/src/core/lib/handshaker/proxy_mapper.h +53 -0
- data/src/core/lib/handshaker/proxy_mapper_registry.cc +71 -0
- data/src/core/lib/handshaker/proxy_mapper_registry.h +75 -0
- data/src/core/lib/http/format_request.cc +81 -47
- data/src/core/lib/http/format_request.h +30 -27
- data/src/core/lib/http/httpcli.cc +328 -262
- data/src/core/lib/http/httpcli.h +256 -115
- data/src/core/lib/http/httpcli_security_connector.cc +101 -104
- data/src/core/lib/http/httpcli_ssl_credentials.h +39 -0
- data/src/core/lib/http/parser.cc +144 -85
- data/src/core/lib/http/parser.h +51 -35
- data/src/core/lib/iomgr/block_annotate.h +23 -23
- data/src/core/lib/iomgr/buffer_list.cc +156 -136
- data/src/core/lib/iomgr/buffer_list.h +128 -106
- data/src/core/lib/iomgr/call_combiner.cc +37 -58
- data/src/core/lib/iomgr/call_combiner.h +24 -25
- data/src/core/lib/iomgr/cfstream_handle.cc +33 -36
- data/src/core/lib/iomgr/cfstream_handle.h +25 -25
- data/src/core/lib/iomgr/closure.cc +27 -0
- data/src/core/lib/iomgr/closure.h +111 -54
- data/src/core/lib/iomgr/combiner.cc +29 -26
- data/src/core/lib/iomgr/combiner.h +20 -20
- data/src/core/lib/iomgr/dualstack_socket_posix.cc +21 -21
- data/src/core/lib/iomgr/dynamic_annotations.h +22 -22
- data/src/core/lib/iomgr/endpoint.cc +21 -21
- data/src/core/lib/iomgr/endpoint.h +53 -51
- data/src/core/lib/iomgr/endpoint_cfstream.cc +51 -47
- data/src/core/lib/iomgr/endpoint_cfstream.h +32 -32
- data/src/core/lib/iomgr/endpoint_pair.h +20 -20
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +34 -27
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +30 -21
- data/src/core/lib/iomgr/error.cc +52 -832
- data/src/core/lib/iomgr/error.h +45 -319
- data/src/core/lib/iomgr/error_cfstream.cc +18 -23
- data/src/core/lib/iomgr/error_cfstream.h +21 -21
- data/src/core/lib/iomgr/ev_apple.cc +27 -26
- data/src/core/lib/iomgr/ev_apple.h +21 -21
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +270 -254
- data/src/core/lib/iomgr/ev_epoll1_linux.h +21 -21
- data/src/core/lib/iomgr/ev_poll_posix.cc +302 -277
- data/src/core/lib/iomgr/ev_poll_posix.h +22 -22
- data/src/core/lib/iomgr/ev_posix.cc +91 -125
- data/src/core/lib/iomgr/ev_posix.h +94 -88
- data/src/core/lib/iomgr/ev_windows.cc +18 -18
- data/src/core/lib/iomgr/event_engine_shims/closure.cc +62 -0
- data/src/core/lib/iomgr/event_engine_shims/closure.h +39 -0
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +430 -0
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +43 -0
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +91 -0
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.h +44 -0
- data/src/core/lib/iomgr/exec_ctx.cc +45 -139
- data/src/core/lib/iomgr/exec_ctx.h +154 -195
- data/src/core/lib/iomgr/executor.cc +25 -26
- data/src/core/lib/iomgr/executor.h +27 -30
- data/src/core/lib/iomgr/fork_posix.cc +30 -26
- data/src/core/lib/iomgr/fork_windows.cc +21 -21
- data/src/core/lib/iomgr/gethostname.h +20 -20
- data/src/core/lib/iomgr/gethostname_fallback.cc +17 -17
- data/src/core/lib/iomgr/gethostname_host_name_max.cc +17 -17
- data/src/core/lib/iomgr/gethostname_sysconf.cc +17 -17
- data/src/core/lib/iomgr/grpc_if_nametoindex.h +22 -22
- data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +20 -19
- data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +20 -19
- data/src/core/lib/iomgr/internal_errqueue.cc +41 -48
- data/src/core/lib/iomgr/internal_errqueue.h +84 -89
- data/src/core/lib/iomgr/iocp_windows.cc +31 -31
- data/src/core/lib/iomgr/iocp_windows.h +22 -22
- data/src/core/lib/iomgr/iomgr.cc +25 -20
- data/src/core/lib/iomgr/iomgr.h +35 -35
- data/src/core/lib/iomgr/iomgr_fwd.h +26 -0
- data/src/core/lib/iomgr/iomgr_internal.cc +17 -17
- data/src/core/lib/iomgr/iomgr_internal.h +28 -28
- data/src/core/lib/iomgr/iomgr_posix.cc +22 -21
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +22 -20
- data/src/core/lib/iomgr/iomgr_windows.cc +25 -23
- data/src/core/lib/iomgr/load_file.cc +24 -27
- data/src/core/lib/iomgr/load_file.h +22 -22
- data/src/core/lib/iomgr/lockfree_event.cc +114 -131
- data/src/core/lib/iomgr/lockfree_event.h +23 -23
- data/src/core/lib/iomgr/nameser.h +86 -86
- data/src/core/lib/iomgr/polling_entity.cc +25 -21
- data/src/core/lib/iomgr/polling_entity.h +35 -29
- data/src/core/lib/iomgr/pollset.cc +18 -18
- data/src/core/lib/iomgr/pollset.h +60 -60
- data/src/core/lib/iomgr/pollset_set.cc +17 -17
- data/src/core/lib/iomgr/pollset_set.h +26 -28
- data/src/core/lib/iomgr/pollset_set_windows.cc +18 -18
- data/src/core/lib/iomgr/pollset_set_windows.h +20 -20
- data/src/core/lib/iomgr/pollset_windows.cc +34 -33
- data/src/core/lib/iomgr/pollset_windows.h +24 -24
- data/src/core/lib/iomgr/port.h +59 -42
- data/src/core/lib/iomgr/python_util.h +24 -24
- data/src/core/lib/iomgr/resolve_address.cc +34 -39
- data/src/core/lib/iomgr/resolve_address.h +100 -67
- data/src/core/lib/iomgr/resolve_address_impl.h +59 -0
- data/src/core/lib/iomgr/resolve_address_posix.cc +133 -98
- data/src/core/lib/iomgr/resolve_address_posix.h +63 -0
- data/src/core/lib/iomgr/resolve_address_windows.cc +129 -84
- data/src/core/lib/iomgr/resolve_address_windows.h +63 -0
- data/src/core/lib/iomgr/resolved_address.h +39 -0
- data/src/core/lib/iomgr/sockaddr.h +25 -26
- data/src/core/lib/iomgr/sockaddr_posix.h +23 -21
- data/src/core/lib/iomgr/sockaddr_utils_posix.cc +64 -0
- data/src/core/lib/iomgr/sockaddr_windows.h +23 -21
- data/src/core/lib/iomgr/socket_factory_posix.cc +18 -18
- data/src/core/lib/iomgr/socket_factory_posix.h +32 -32
- data/src/core/lib/iomgr/socket_mutator.cc +19 -18
- data/src/core/lib/iomgr/socket_mutator.h +39 -39
- data/src/core/lib/iomgr/socket_utils.h +27 -27
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +82 -118
- data/src/core/lib/iomgr/socket_utils_linux.cc +18 -17
- data/src/core/lib/iomgr/socket_utils_posix.cc +103 -19
- data/src/core/lib/iomgr/socket_utils_posix.h +176 -84
- data/src/core/lib/iomgr/socket_utils_windows.cc +20 -19
- data/src/core/lib/iomgr/socket_windows.cc +37 -36
- data/src/core/lib/iomgr/socket_windows.h +59 -61
- data/src/core/lib/iomgr/systemd_utils.cc +116 -0
- data/src/core/lib/iomgr/systemd_utils.h +33 -0
- data/src/core/lib/iomgr/tcp_client.cc +28 -24
- data/src/core/lib/iomgr/tcp_client.h +49 -37
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +46 -35
- data/src/core/lib/iomgr/tcp_client_posix.cc +244 -106
- data/src/core/lib/iomgr/tcp_client_posix.h +55 -52
- data/src/core/lib/iomgr/tcp_client_windows.cc +73 -53
- data/src/core/lib/iomgr/tcp_posix.cc +563 -361
- data/src/core/lib/iomgr/tcp_posix.h +32 -30
- data/src/core/lib/iomgr/tcp_server.cc +33 -24
- data/src/core/lib/iomgr/tcp_server.h +78 -69
- data/src/core/lib/iomgr/tcp_server_posix.cc +402 -145
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +68 -55
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +121 -82
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +47 -43
- data/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc +19 -19
- data/src/core/lib/iomgr/tcp_server_windows.cc +116 -118
- data/src/core/lib/iomgr/tcp_windows.cc +123 -98
- data/src/core/lib/iomgr/tcp_windows.h +34 -35
- data/src/core/lib/iomgr/timer.cc +19 -19
- data/src/core/lib/iomgr/timer.h +78 -73
- data/src/core/lib/iomgr/timer_generic.cc +214 -204
- data/src/core/lib/iomgr/timer_generic.h +21 -21
- data/src/core/lib/iomgr/timer_heap.cc +25 -25
- data/src/core/lib/iomgr/timer_heap.h +22 -22
- data/src/core/lib/iomgr/timer_manager.cc +44 -43
- data/src/core/lib/iomgr/timer_manager.h +27 -27
- data/src/core/lib/iomgr/unix_sockets_posix.cc +38 -51
- data/src/core/lib/iomgr/unix_sockets_posix.h +25 -28
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +25 -32
- data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +23 -23
- data/src/core/lib/iomgr/wakeup_fd_nospecial.cc +23 -23
- data/src/core/lib/iomgr/wakeup_fd_pipe.cc +29 -26
- data/src/core/lib/iomgr/wakeup_fd_pipe.h +20 -20
- data/src/core/lib/iomgr/wakeup_fd_posix.cc +33 -30
- data/src/core/lib/iomgr/wakeup_fd_posix.h +52 -54
- data/src/core/lib/json/json.h +23 -27
- data/src/core/lib/json/json_args.h +34 -0
- data/src/core/lib/json/json_channel_args.h +42 -0
- data/src/core/lib/json/json_object_loader.cc +217 -0
- data/src/core/lib/json/json_object_loader.h +634 -0
- data/src/core/lib/json/json_reader.cc +123 -90
- data/src/core/lib/json/json_util.cc +17 -37
- data/src/core/lib/json/json_util.h +21 -12
- data/src/core/lib/json/json_writer.cc +62 -57
- data/src/core/lib/load_balancing/lb_policy.cc +102 -0
- data/src/core/lib/load_balancing/lb_policy.h +442 -0
- data/src/core/lib/load_balancing/lb_policy_factory.h +49 -0
- data/src/core/lib/load_balancing/lb_policy_registry.cc +142 -0
- data/src/core/lib/load_balancing/lb_policy_registry.h +82 -0
- data/src/core/lib/load_balancing/subchannel_interface.h +135 -0
- data/src/core/lib/matchers/matchers.cc +13 -8
- data/src/core/lib/matchers/matchers.h +5 -3
- data/src/core/lib/promise/activity.cc +36 -15
- data/src/core/lib/promise/activity.h +287 -188
- data/src/core/lib/promise/arena_promise.h +231 -0
- data/src/core/lib/promise/context.h +18 -11
- data/src/core/lib/promise/detail/basic_join.h +197 -0
- data/src/core/lib/promise/detail/basic_seq.h +104 -20
- data/src/core/lib/promise/detail/promise_factory.h +62 -15
- data/src/core/lib/promise/detail/promise_like.h +3 -3
- data/src/core/lib/promise/detail/status.h +37 -3
- data/src/core/lib/promise/detail/switch.h +21 -21
- data/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +23 -15
- data/src/core/lib/promise/if.h +195 -0
- data/src/core/lib/promise/interceptor_list.h +308 -0
- data/src/core/lib/promise/intra_activity_waiter.h +55 -0
- data/src/core/lib/promise/latch.h +191 -0
- data/src/core/lib/promise/loop.h +44 -14
- data/src/core/lib/promise/map.h +4 -6
- data/src/core/lib/promise/pipe.h +608 -0
- data/src/core/lib/promise/poll.h +132 -8
- data/src/core/lib/promise/promise.h +95 -0
- data/src/core/lib/promise/race.h +6 -10
- data/src/core/lib/promise/seq.h +45 -9
- data/src/core/lib/promise/sleep.cc +90 -0
- data/src/core/lib/promise/sleep.h +84 -0
- data/src/core/lib/promise/trace.cc +20 -0
- data/src/core/lib/promise/trace.h +24 -0
- data/src/core/lib/promise/try_join.h +82 -0
- data/src/core/lib/promise/try_seq.h +175 -0
- data/src/core/lib/resolver/resolver.cc +37 -0
- data/src/core/lib/resolver/resolver.h +138 -0
- data/src/core/lib/resolver/resolver_factory.h +77 -0
- data/src/core/lib/resolver/resolver_registry.cc +164 -0
- data/src/core/lib/resolver/resolver_registry.h +123 -0
- data/src/core/lib/resolver/server_address.cc +182 -0
- data/src/core/lib/resolver/server_address.h +145 -0
- data/src/core/lib/resource_quota/api.cc +25 -29
- data/src/core/lib/resource_quota/api.h +14 -6
- data/src/core/lib/resource_quota/arena.cc +165 -0
- data/src/core/lib/resource_quota/arena.h +314 -0
- data/src/core/lib/resource_quota/memory_quota.cc +418 -173
- data/src/core/lib/resource_quota/memory_quota.h +287 -116
- data/src/core/lib/resource_quota/periodic_update.cc +78 -0
- data/src/core/lib/resource_quota/periodic_update.h +71 -0
- data/src/core/lib/resource_quota/resource_quota.h +20 -4
- data/src/core/lib/resource_quota/thread_quota.cc +2 -0
- data/src/core/lib/resource_quota/thread_quota.h +7 -3
- data/src/core/lib/resource_quota/trace.h +3 -3
- data/src/core/lib/security/authorization/authorization_engine.h +3 -3
- data/src/core/lib/security/authorization/authorization_policy_provider.h +17 -3
- data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +3 -0
- data/src/core/lib/security/authorization/evaluate_args.cc +42 -28
- data/src/core/lib/security/authorization/evaluate_args.h +10 -7
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +64 -0
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +69 -0
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +122 -0
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +61 -0
- data/src/core/lib/security/authorization/matchers.cc +241 -0
- data/src/core/lib/security/authorization/matchers.h +218 -0
- data/src/core/lib/security/authorization/rbac_policy.cc +446 -0
- data/src/core/lib/security/authorization/rbac_policy.h +178 -0
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +66 -0
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +60 -0
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +70 -0
- data/src/core/lib/security/context/security_context.cc +31 -27
- data/src/core/lib/security/context/security_context.h +65 -36
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +35 -27
- data/src/core/lib/security/credentials/alts/alts_credentials.h +71 -57
- data/src/core/lib/security/credentials/alts/check_gcp_environment.cc +19 -19
- data/src/core/lib/security/credentials/alts/check_gcp_environment.h +43 -43
- data/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc +17 -17
- data/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc +18 -17
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +18 -17
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc +20 -22
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc +18 -18
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h +38 -39
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc +19 -22
- data/src/core/lib/security/credentials/call_creds_util.cc +97 -0
- data/src/core/lib/security/credentials/call_creds_util.h +43 -0
- data/src/core/lib/security/credentials/channel_creds_registry.h +103 -0
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +80 -0
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +52 -111
- data/src/core/lib/security/credentials/composite/composite_credentials.h +65 -40
- data/src/core/lib/security/credentials/credentials.cc +25 -29
- data/src/core/lib/security/credentials/credentials.h +141 -133
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +248 -104
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +22 -3
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +14 -3
- data/src/core/lib/security/credentials/external/aws_request_signer.h +3 -3
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +137 -101
- data/src/core/lib/security/credentials/external/external_account_credentials.h +19 -12
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +29 -27
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +9 -3
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +77 -44
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +14 -3
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +62 -62
- data/src/core/lib/security/credentials/fake/fake_credentials.h +71 -63
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +23 -25
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +163 -124
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +41 -29
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +50 -47
- data/src/core/lib/security/credentials/iam/iam_credentials.h +46 -30
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +35 -26
- data/src/core/lib/security/credentials/insecure/insecure_credentials.h +61 -0
- data/src/core/lib/security/credentials/jwt/json_token.cc +44 -35
- data/src/core/lib/security/credentials/jwt/json_token.h +36 -36
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +62 -71
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +51 -33
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +166 -129
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +51 -49
- data/src/core/lib/security/credentials/local/local_credentials.cc +36 -30
- data/src/core/lib/security/credentials/local/local_credentials.h +42 -26
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +229 -234
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +103 -55
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +122 -174
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +101 -48
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +49 -54
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +49 -26
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +22 -30
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +16 -17
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +65 -48
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +69 -9
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.cc +44 -4
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +75 -13
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +47 -23
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +70 -83
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +55 -50
- data/src/core/lib/security/credentials/tls/tls_credentials.h +34 -25
- data/src/core/lib/security/credentials/tls/tls_utils.cc +5 -1
- data/src/core/lib/security/credentials/tls/tls_utils.h +4 -4
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +77 -81
- data/src/core/lib/security/credentials/xds/xds_credentials.h +56 -11
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +68 -68
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +50 -48
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +79 -91
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +26 -29
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +21 -22
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +30 -24
- data/src/core/lib/security/security_connector/load_system_roots.h +20 -20
- data/src/core/lib/security/security_connector/load_system_roots_fallback.cc +22 -20
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +175 -0
- data/src/core/lib/security/security_connector/load_system_roots_supported.h +45 -0
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +74 -65
- data/src/core/lib/security/security_connector/local/local_security_connector.h +49 -46
- data/src/core/lib/security/security_connector/security_connector.cc +39 -49
- data/src/core/lib/security/security_connector/security_connector.h +82 -65
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +65 -59
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +44 -43
- data/src/core/lib/security/security_connector/ssl_utils.cc +76 -70
- data/src/core/lib/security/security_connector/ssl_utils.h +57 -58
- data/src/core/lib/security/security_connector/ssl_utils_config.cc +22 -22
- data/src/core/lib/security/security_connector/ssl_utils_config.h +21 -22
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +83 -71
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +54 -34
- data/src/core/lib/security/transport/auth_filters.h +89 -27
- data/src/core/lib/security/transport/client_auth_filter.cc +142 -388
- data/src/core/lib/security/transport/secure_endpoint.cc +305 -181
- data/src/core/lib/security/transport/secure_endpoint.h +29 -28
- data/src/core/lib/security/transport/security_handshaker.cc +147 -107
- data/src/core/lib/security/transport/security_handshaker.h +28 -23
- data/src/core/lib/security/transport/server_auth_filter.cc +179 -282
- data/src/core/lib/security/transport/tsi_error.cc +23 -20
- data/src/core/lib/security/transport/tsi_error.h +20 -20
- data/src/core/lib/security/util/json_util.cc +24 -24
- data/src/core/lib/security/util/json_util.h +21 -23
- data/src/core/lib/service_config/service_config.h +89 -0
- data/src/core/lib/service_config/service_config_call_data.h +82 -0
- data/src/core/lib/service_config/service_config_impl.cc +191 -0
- data/src/core/lib/service_config/service_config_impl.h +125 -0
- data/src/core/lib/service_config/service_config_parser.cc +81 -0
- data/src/core/lib/service_config/service_config_parser.h +105 -0
- data/src/core/lib/slice/b64.cc +26 -26
- data/src/core/lib/slice/b64.h +34 -32
- data/src/core/lib/slice/percent_encoding.cc +24 -30
- data/src/core/lib/slice/percent_encoding.h +28 -34
- data/src/core/lib/slice/slice.cc +128 -218
- data/src/core/lib/slice/slice.h +126 -39
- data/src/core/lib/slice/slice_buffer.cc +136 -76
- data/src/core/lib/slice/slice_buffer.h +168 -0
- data/src/core/lib/slice/slice_internal.h +43 -69
- data/src/core/lib/slice/slice_refcount.cc +4 -1
- data/src/core/lib/slice/slice_refcount.h +51 -96
- data/src/core/lib/slice/slice_string_helpers.cc +17 -33
- data/src/core/lib/slice/slice_string_helpers.h +23 -30
- data/src/core/lib/surface/api_trace.cc +17 -17
- data/src/core/lib/surface/api_trace.h +25 -25
- data/src/core/lib/surface/builtins.cc +11 -6
- data/src/core/lib/surface/builtins.h +3 -3
- data/src/core/lib/surface/byte_buffer.cc +26 -21
- data/src/core/lib/surface/byte_buffer_reader.cc +24 -24
- data/src/core/lib/surface/call.cc +3070 -1436
- data/src/core/lib/surface/call.h +140 -61
- data/src/core/lib/surface/call_details.cc +22 -23
- data/src/core/lib/surface/call_log_batch.cc +25 -18
- data/src/core/lib/surface/call_test_only.h +34 -31
- data/src/core/lib/surface/call_trace.cc +123 -0
- data/src/core/lib/surface/call_trace.h +30 -0
- data/src/core/lib/surface/channel.cc +249 -322
- data/src/core/lib/surface/channel.h +140 -94
- data/src/core/lib/surface/channel_init.cc +19 -20
- data/src/core/lib/surface/channel_init.h +25 -27
- data/src/core/lib/surface/channel_ping.cc +26 -20
- data/src/core/lib/surface/channel_stack_type.cc +21 -19
- data/src/core/lib/surface/channel_stack_type.h +22 -22
- data/src/core/lib/surface/completion_queue.cc +210 -231
- data/src/core/lib/surface/completion_queue.h +42 -40
- data/src/core/lib/surface/completion_queue_factory.cc +34 -28
- data/src/core/lib/surface/completion_queue_factory.h +21 -23
- data/src/core/lib/surface/event_string.cc +19 -24
- data/src/core/lib/surface/event_string.h +21 -21
- data/src/core/lib/surface/init.cc +106 -94
- data/src/core/lib/surface/init.h +20 -30
- data/src/core/lib/surface/init_internally.cc +25 -0
- data/src/core/lib/surface/init_internally.h +37 -0
- data/src/core/lib/surface/lame_client.cc +87 -130
- data/src/core/lib/surface/lame_client.h +62 -24
- data/src/core/lib/surface/metadata_array.cc +18 -17
- data/src/core/lib/surface/server.cc +421 -228
- data/src/core/lib/surface/server.h +62 -31
- data/src/core/lib/surface/validate_metadata.cc +34 -48
- data/src/core/lib/surface/validate_metadata.h +24 -21
- data/src/core/lib/surface/version.cc +21 -21
- data/src/core/lib/transport/bdp_estimator.cc +28 -29
- data/src/core/lib/transport/bdp_estimator.h +24 -26
- data/src/core/lib/transport/connectivity_state.cc +24 -23
- data/src/core/lib/transport/connectivity_state.h +24 -25
- data/src/core/lib/transport/error_utils.cc +62 -82
- data/src/core/lib/transport/error_utils.h +31 -26
- data/src/core/lib/transport/handshaker.cc +239 -0
- data/src/core/lib/transport/handshaker.h +172 -0
- data/src/core/lib/transport/handshaker_factory.h +74 -0
- data/src/core/lib/transport/handshaker_registry.cc +61 -0
- data/src/core/lib/transport/handshaker_registry.h +69 -0
- data/src/core/lib/transport/http2_errors.h +22 -22
- data/src/core/lib/transport/http_connect_handshaker.cc +400 -0
- data/src/core/lib/transport/http_connect_handshaker.h +42 -0
- data/src/core/lib/transport/metadata_batch.cc +278 -72
- data/src/core/lib/transport/metadata_batch.h +1052 -825
- data/src/core/lib/transport/parsed_metadata.cc +4 -4
- data/src/core/lib/transport/parsed_metadata.h +128 -100
- data/src/core/lib/transport/pid_controller.cc +20 -20
- data/src/core/lib/transport/pid_controller.h +27 -27
- data/src/core/lib/transport/status_conversion.cc +25 -25
- data/src/core/lib/transport/status_conversion.h +25 -25
- data/src/core/lib/transport/tcp_connect_handshaker.cc +245 -0
- data/src/core/lib/transport/tcp_connect_handshaker.h +39 -0
- data/src/core/lib/transport/timeout_encoding.cc +225 -92
- data/src/core/lib/transport/timeout_encoding.h +65 -31
- data/src/core/lib/transport/transport.cc +99 -57
- data/src/core/lib/transport/transport.h +282 -152
- data/src/core/lib/transport/transport_fwd.h +20 -0
- data/src/core/lib/transport/transport_impl.h +59 -35
- data/src/core/lib/transport/transport_op_string.cc +44 -85
- data/src/core/lib/uri/uri_parser.cc +239 -57
- data/src/core/lib/uri/uri_parser.h +40 -28
- data/src/core/plugin_registry/grpc_plugin_registry.cc +77 -156
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +66 -0
- data/src/core/tsi/alts/crypt/aes_gcm.cc +20 -20
- data/src/core/tsi/alts/crypt/gsec.cc +26 -26
- data/src/core/tsi/alts/crypt/gsec.h +336 -336
- data/src/core/tsi/alts/frame_protector/alts_counter.cc +23 -23
- data/src/core/tsi/alts/frame_protector/alts_counter.h +68 -68
- data/src/core/tsi/alts/frame_protector/alts_crypter.cc +19 -19
- data/src/core/tsi/alts/frame_protector/alts_crypter.h +209 -209
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +72 -71
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.h +40 -40
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc +18 -18
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h +82 -83
- data/src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc +22 -22
- data/src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc +22 -22
- data/src/core/tsi/alts/frame_protector/frame_handler.cc +26 -25
- data/src/core/tsi/alts/frame_protector/frame_handler.h +169 -169
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +142 -117
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.h +104 -104
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +27 -18
- data/src/core/tsi/alts/handshaker/alts_shared_resource.h +43 -44
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +72 -56
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +60 -60
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h +24 -24
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +23 -22
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +39 -39
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +21 -21
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +107 -106
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +45 -44
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h +40 -41
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +38 -36
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h +35 -36
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h +67 -68
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +32 -31
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h +55 -56
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc +54 -53
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h +141 -142
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +67 -58
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +43 -44
- data/src/core/tsi/fake_transport_security.cc +146 -110
- data/src/core/tsi/fake_transport_security.h +36 -30
- data/src/core/tsi/local_transport_security.cc +46 -49
- data/src/core/tsi/local_transport_security.h +34 -37
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +146 -0
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +81 -0
- data/src/core/tsi/ssl/session_cache/ssl_session.h +24 -24
- data/src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc +21 -19
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +18 -17
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +34 -27
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +27 -20
- data/src/core/tsi/ssl_transport_security.cc +451 -394
- data/src/core/tsi/ssl_transport_security.h +235 -194
- data/src/core/tsi/ssl_transport_security_utils.cc +250 -0
- data/src/core/tsi/ssl_transport_security_utils.h +147 -0
- data/src/core/tsi/ssl_types.h +27 -27
- data/src/core/tsi/transport_security.cc +44 -32
- data/src/core/tsi/transport_security.h +49 -48
- data/src/core/tsi/transport_security_grpc.cc +23 -22
- data/src/core/tsi/transport_security_grpc.h +44 -41
- data/src/core/tsi/transport_security_interface.h +346 -332
- data/src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.clang +2 -0
- data/src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.gcc +7 -0
- data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.clang +2 -0
- data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.gcc +7 -0
- data/src/ruby/ext/grpc/ext-export.gcc +1 -1
- data/src/ruby/ext/grpc/extconf.rb +107 -22
- data/src/ruby/ext/grpc/rb_call.c +1 -0
- data/src/ruby/ext/grpc/rb_channel.c +6 -2
- data/src/ruby/ext/grpc/rb_channel_args.c +1 -0
- data/src/ruby/ext/grpc/rb_compression_options.c +1 -1
- data/src/ruby/ext/grpc/rb_grpc.c +1 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +58 -62
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +90 -96
- data/src/ruby/ext/grpc/rb_loader.c +6 -2
- data/src/ruby/ext/grpc/rb_server.c +7 -4
- data/src/ruby/lib/grpc/errors.rb +1 -1
- data/src/ruby/lib/grpc/generic/active_call.rb +7 -1
- data/src/ruby/lib/grpc/generic/bidi_call.rb +2 -0
- data/src/ruby/lib/grpc/grpc.rb +1 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/generate_proto_ruby.sh +1 -6
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +4 -0
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -1
- data/src/ruby/pb/test/client.rb +769 -0
- data/src/ruby/pb/test/server.rb +252 -0
- data/src/ruby/pb/test/xds_client.rb +415 -0
- data/src/ruby/spec/channel_spec.rb +5 -43
- data/src/ruby/spec/client_server_spec.rb +20 -8
- data/src/ruby/spec/generic/active_call_spec.rb +12 -3
- data/src/ruby/spec/generic/client_stub_spec.rb +23 -23
- data/src/ruby/spec/generic/server_interceptors_spec.rb +1 -1
- data/src/ruby/spec/user_agent_spec.rb +1 -1
- data/third_party/abseil-cpp/absl/algorithm/container.h +57 -58
- data/third_party/abseil-cpp/absl/base/attributes.h +88 -41
- data/third_party/abseil-cpp/absl/base/casts.h +61 -68
- data/third_party/abseil-cpp/absl/base/config.h +221 -39
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.cc +12 -42
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.h +52 -2
- data/third_party/abseil-cpp/absl/base/internal/cycleclock_config.h +55 -0
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +5 -4
- data/third_party/abseil-cpp/absl/base/internal/endian.h +17 -62
- data/third_party/abseil-cpp/absl/base/internal/fast_type_id.h +50 -0
- data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +3 -3
- data/third_party/abseil-cpp/absl/base/internal/invoke.h +54 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +2 -2
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +1 -1
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +138 -0
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +39 -28
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +36 -36
- data/third_party/abseil-cpp/absl/base/internal/spinlock.cc +6 -3
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +10 -6
- data/third_party/abseil-cpp/absl/base/internal/spinlock_linux.inc +2 -5
- data/third_party/abseil-cpp/absl/base/internal/spinlock_win32.inc +4 -1
- data/third_party/abseil-cpp/absl/base/internal/strerror.cc +88 -0
- data/third_party/abseil-cpp/absl/base/internal/strerror.h +39 -0
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +14 -11
- data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +9 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +2 -1
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +4 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +6 -7
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.h +12 -40
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h +62 -0
- data/third_party/abseil-cpp/absl/base/log_severity.cc +28 -0
- data/third_party/abseil-cpp/absl/base/log_severity.h +51 -0
- data/third_party/abseil-cpp/absl/base/macros.h +4 -21
- data/third_party/abseil-cpp/absl/base/optimization.h +76 -16
- data/third_party/abseil-cpp/absl/base/options.h +1 -7
- data/third_party/abseil-cpp/absl/base/policy_checks.h +15 -13
- data/third_party/abseil-cpp/absl/base/thread_annotations.h +2 -2
- data/third_party/abseil-cpp/absl/cleanup/cleanup.h +140 -0
- data/third_party/abseil-cpp/absl/cleanup/internal/cleanup.h +100 -0
- data/third_party/abseil-cpp/absl/container/fixed_array.h +9 -5
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +11 -4
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +503 -0
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +84 -25
- data/third_party/abseil-cpp/absl/container/internal/common.h +9 -8
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +132 -0
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +23 -29
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +4 -55
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +116 -23
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +40 -54
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +165 -66
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +159 -4
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1121 -470
- data/third_party/abseil-cpp/absl/crc/crc32c.cc +99 -0
- data/third_party/abseil-cpp/absl/crc/crc32c.h +183 -0
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +256 -0
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.h +57 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc.cc +468 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc.h +91 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +269 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc32c.h +39 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc32c_inline.h +72 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +130 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.h +159 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_internal.h +179 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy.h +119 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +75 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +434 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_non_temporal_memcpy.cc +93 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +725 -0
- data/third_party/abseil-cpp/absl/crc/internal/non_temporal_arm_intrinsics.h +79 -0
- data/third_party/abseil-cpp/absl/crc/internal/non_temporal_memcpy.h +180 -0
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +45 -88
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +67 -38
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +16 -13
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +3 -2
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +19 -12
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_arm-inl.inc +8 -3
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +2 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_generic-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +8 -3
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_riscv-inl.inc +59 -102
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_win32-inl.inc +5 -4
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +41 -11
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +18 -4
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +6 -1
- data/third_party/abseil-cpp/absl/debugging/symbolize_darwin.inc +3 -2
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +164 -101
- data/third_party/abseil-cpp/absl/debugging/symbolize_win32.inc +7 -6
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +316 -0
- data/third_party/abseil-cpp/absl/functional/bind_front.h +10 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +2 -1
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +878 -0
- data/third_party/abseil-cpp/absl/hash/hash.h +82 -8
- data/third_party/abseil-cpp/absl/hash/internal/city.cc +10 -10
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +235 -26
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +3 -14
- data/third_party/abseil-cpp/absl/memory/memory.h +26 -447
- data/third_party/abseil-cpp/absl/meta/type_traits.h +104 -12
- data/third_party/abseil-cpp/absl/numeric/bits.h +1 -1
- data/third_party/abseil-cpp/absl/numeric/int128.cc +14 -10
- data/third_party/abseil-cpp/absl/numeric/int128.h +2 -2
- data/third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h +33 -10
- data/third_party/abseil-cpp/absl/random/bernoulli_distribution.h +200 -0
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +427 -0
- data/third_party/abseil-cpp/absl/random/discrete_distribution.cc +98 -0
- data/third_party/abseil-cpp/absl/random/discrete_distribution.h +247 -0
- data/third_party/abseil-cpp/absl/random/distributions.h +452 -0
- data/third_party/abseil-cpp/absl/random/exponential_distribution.h +165 -0
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.cc +104 -0
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.h +275 -0
- data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +95 -0
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +270 -0
- data/third_party/abseil-cpp/absl/random/internal/fastmath.h +57 -0
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +144 -0
- data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +245 -0
- data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +161 -0
- data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +287 -0
- data/third_party/abseil-cpp/absl/random/internal/platform.h +171 -0
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.cc +253 -0
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.h +131 -0
- data/third_party/abseil-cpp/absl/random/internal/randen.cc +91 -0
- data/third_party/abseil-cpp/absl/random/internal/randen.h +96 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +225 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.h +33 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +264 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +526 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.h +50 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc +462 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.cc +471 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.h +40 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_traits.h +88 -0
- data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +165 -0
- data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +267 -0
- data/third_party/abseil-cpp/absl/random/internal/seed_material.h +104 -0
- data/third_party/abseil-cpp/absl/random/internal/traits.h +149 -0
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +244 -0
- data/third_party/abseil-cpp/absl/random/internal/wide_multiply.h +96 -0
- data/third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h +256 -0
- data/third_party/abseil-cpp/absl/random/poisson_distribution.h +261 -0
- data/third_party/abseil-cpp/absl/random/random.h +189 -0
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.cc +46 -0
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.h +55 -0
- data/third_party/abseil-cpp/absl/random/seed_sequences.cc +29 -0
- data/third_party/abseil-cpp/absl/random/seed_sequences.h +111 -0
- data/third_party/abseil-cpp/absl/random/uniform_int_distribution.h +275 -0
- data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +202 -0
- data/third_party/abseil-cpp/absl/random/zipf_distribution.h +272 -0
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +18 -0
- data/third_party/abseil-cpp/absl/status/status.cc +193 -14
- data/third_party/abseil-cpp/absl/status/status.h +24 -14
- data/third_party/abseil-cpp/absl/status/statusor.h +9 -3
- data/third_party/abseil-cpp/absl/strings/ascii.cc +5 -5
- data/third_party/abseil-cpp/absl/strings/ascii.h +4 -4
- data/third_party/abseil-cpp/absl/strings/charconv.cc +534 -96
- data/third_party/abseil-cpp/absl/strings/cord.cc +257 -924
- data/third_party/abseil-cpp/absl/strings/cord.h +268 -156
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +188 -0
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +44 -0
- data/third_party/abseil-cpp/absl/strings/cord_buffer.cc +30 -0
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +575 -0
- data/third_party/abseil-cpp/absl/strings/escaping.cc +73 -62
- data/third_party/abseil-cpp/absl/strings/escaping.h +24 -19
- data/third_party/abseil-cpp/absl/strings/internal/char_map.h +14 -12
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +4 -4
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.cc +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cord_data_edge.h +63 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +20 -32
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +441 -150
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +157 -53
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +70 -73
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.cc +8 -6
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.h +4 -2
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.cc +3 -2
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.h +5 -4
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +7 -74
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_crc.cc +56 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_crc.h +103 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +58 -17
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +13 -11
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.h +7 -15
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +3 -3
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +19 -43
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +7 -7
- data/third_party/abseil-cpp/absl/strings/internal/cordz_statistics.h +5 -4
- data/third_party/abseil-cpp/absl/strings/internal/cordz_update_tracker.h +4 -2
- data/third_party/abseil-cpp/absl/strings/internal/damerau_levenshtein_distance.cc +93 -0
- data/third_party/abseil-cpp/absl/strings/internal/damerau_levenshtein_distance.h +34 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +18 -15
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +7 -9
- data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +55 -0
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +9 -6
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc +14 -7
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.h +35 -10
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +113 -46
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +127 -30
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +3 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +42 -10
- data/third_party/abseil-cpp/absl/strings/internal/str_format/checker.h +56 -289
- data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +351 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.cc +6 -6
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +9 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +215 -181
- data/third_party/abseil-cpp/absl/strings/internal/str_format/output.h +2 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.cc +10 -209
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +14 -103
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +9 -6
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +2 -1
- data/third_party/abseil-cpp/absl/strings/internal/string_constant.h +10 -2
- data/third_party/abseil-cpp/absl/strings/internal/stringify_sink.cc +28 -0
- data/third_party/abseil-cpp/absl/strings/internal/stringify_sink.h +57 -0
- data/third_party/abseil-cpp/absl/strings/internal/utf8.cc +9 -9
- data/third_party/abseil-cpp/absl/strings/numbers.cc +42 -39
- data/third_party/abseil-cpp/absl/strings/numbers.h +26 -23
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +9 -6
- data/third_party/abseil-cpp/absl/strings/str_cat.h +70 -16
- data/third_party/abseil-cpp/absl/strings/str_format.h +71 -9
- data/third_party/abseil-cpp/absl/strings/str_join.h +9 -15
- data/third_party/abseil-cpp/absl/strings/str_split.h +1 -2
- data/third_party/abseil-cpp/absl/strings/string_view.cc +8 -19
- data/third_party/abseil-cpp/absl/strings/string_view.h +6 -12
- data/third_party/abseil-cpp/absl/strings/strip.h +8 -6
- data/third_party/abseil-cpp/absl/strings/substitute.cc +8 -6
- data/third_party/abseil-cpp/absl/strings/substitute.h +55 -21
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +9 -6
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.h +0 -4
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +20 -17
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +37 -31
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +22 -8
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +0 -4
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +1 -6
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +0 -25
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +10 -4
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +172 -88
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +102 -55
- data/third_party/abseil-cpp/absl/synchronization/notification.cc +0 -1
- data/third_party/abseil-cpp/absl/synchronization/notification.h +3 -3
- data/third_party/abseil-cpp/absl/time/civil_time.cc +26 -0
- data/third_party/abseil-cpp/absl/time/civil_time.h +25 -0
- data/third_party/abseil-cpp/absl/time/clock.cc +17 -11
- data/third_party/abseil-cpp/absl/time/duration.cc +12 -11
- data/third_party/abseil-cpp/absl/time/format.cc +2 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +11 -7
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +26 -5
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +7 -6
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +36 -35
- data/third_party/abseil-cpp/absl/time/time.cc +2 -2
- data/third_party/abseil-cpp/absl/time/time.h +268 -169
- data/third_party/abseil-cpp/absl/types/internal/optional.h +8 -0
- data/third_party/abseil-cpp/absl/types/internal/span.h +30 -19
- data/third_party/abseil-cpp/absl/types/internal/variant.h +28 -40
- data/third_party/abseil-cpp/absl/types/optional.h +17 -14
- data/third_party/abseil-cpp/absl/types/span.h +31 -8
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +13 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +21 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +12 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +29 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +8 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +13 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +10 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +9 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +6 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +23 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +1 -2
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +4 -0
- data/third_party/cares/cares/include/ares.h +742 -0
- data/third_party/cares/cares/include/ares_dns.h +112 -0
- data/third_party/cares/cares/include/ares_version.h +24 -0
- data/third_party/cares/cares/src/lib/ares__close_sockets.c +61 -0
- data/third_party/cares/cares/src/lib/ares__get_hostent.c +260 -0
- data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +260 -0
- data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +264 -0
- data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +499 -0
- data/third_party/cares/cares/src/lib/ares_android.c +444 -0
- data/third_party/cares/cares/src/lib/ares_android.h +27 -0
- data/third_party/cares/cares/src/lib/ares_create_query.c +197 -0
- data/third_party/cares/cares/src/lib/ares_data.c +240 -0
- data/third_party/cares/cares/src/lib/ares_data.h +74 -0
- data/third_party/cares/cares/src/lib/ares_expand_name.c +300 -0
- data/third_party/cares/cares/src/lib/ares_expand_string.c +67 -0
- data/third_party/cares/cares/src/lib/ares_free_hostent.c +43 -0
- data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +59 -0
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +772 -0
- data/third_party/cares/cares/src/lib/ares_getenv.c +28 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +287 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +534 -0
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +447 -0
- data/third_party/cares/cares/src/lib/ares_init.c +2654 -0
- data/third_party/cares/cares/src/lib/ares_ipv6.h +85 -0
- data/third_party/cares/cares/src/lib/ares_library_init.c +200 -0
- data/third_party/cares/cares/src/lib/ares_library_init.h +43 -0
- data/third_party/cares/cares/src/lib/ares_nameser.h +482 -0
- data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +209 -0
- data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +212 -0
- data/third_party/cares/cares/src/lib/ares_parse_caa_reply.c +199 -0
- data/third_party/cares/cares/src/lib/ares_parse_mx_reply.c +164 -0
- data/third_party/cares/cares/src/lib/ares_parse_naptr_reply.c +183 -0
- data/third_party/cares/cares/src/lib/ares_parse_ns_reply.c +177 -0
- data/third_party/cares/cares/src/lib/ares_parse_ptr_reply.c +228 -0
- data/third_party/cares/cares/src/lib/ares_parse_soa_reply.c +179 -0
- data/third_party/cares/cares/src/lib/ares_parse_srv_reply.c +168 -0
- data/third_party/cares/cares/src/lib/ares_parse_txt_reply.c +214 -0
- data/third_party/cares/cares/src/lib/ares_private.h +423 -0
- data/third_party/cares/cares/src/lib/ares_process.c +1548 -0
- data/third_party/cares/cares/src/lib/ares_query.c +180 -0
- data/third_party/cares/cares/src/lib/ares_search.c +321 -0
- data/third_party/cares/cares/src/lib/ares_send.c +131 -0
- data/third_party/cares/cares/src/lib/ares_setup.h +220 -0
- data/third_party/cares/cares/src/lib/ares_strsplit.c +178 -0
- data/third_party/cares/cares/src/lib/ares_writev.h +36 -0
- data/third_party/cares/cares/src/lib/config-dos.h +115 -0
- data/third_party/cares/cares/src/lib/inet_net_pton.c +444 -0
- data/third_party/cares/cares/src/lib/inet_ntop.c +201 -0
- data/third_party/re2/re2/bitstate.cc +3 -3
- data/third_party/re2/re2/dfa.cc +13 -13
- data/third_party/re2/re2/nfa.cc +4 -4
- data/third_party/re2/re2/onepass.cc +2 -2
- data/third_party/re2/re2/prefilter_tree.cc +27 -59
- data/third_party/re2/re2/prefilter_tree.h +3 -2
- data/third_party/re2/re2/prog.cc +11 -2
- data/third_party/re2/re2/prog.h +17 -5
- data/third_party/re2/re2/re2.cc +6 -11
- data/third_party/re2/re2/re2.h +1 -1
- data/third_party/re2/re2/regexp.cc +1 -2
- data/third_party/re2/re2/stringpiece.h +10 -7
- data/third_party/re2/re2/unicode_casefold.cc +25 -11
- data/third_party/re2/re2/unicode_groups.cc +319 -151
- data/third_party/re2/re2/walker-inl.h +3 -2
- data/third_party/re2/util/mutex.h +4 -4
- data/third_party/upb/third_party/utf8_range/naive.c +92 -0
- data/third_party/upb/third_party/utf8_range/range2-neon.c +157 -0
- data/third_party/upb/third_party/utf8_range/range2-sse.c +170 -0
- data/third_party/upb/third_party/utf8_range/utf8_range.h +9 -0
- data/third_party/upb/upb/arena.c +277 -0
- data/third_party/upb/upb/arena.h +225 -0
- data/third_party/upb/upb/array.c +114 -0
- data/third_party/upb/upb/array.h +83 -0
- data/third_party/upb/upb/collections.h +36 -0
- data/third_party/upb/upb/decode.c +685 -366
- data/third_party/upb/upb/decode.h +44 -17
- data/third_party/upb/upb/decode_fast.c +304 -302
- data/third_party/upb/upb/decode_fast.h +18 -18
- data/third_party/upb/upb/def.c +1932 -1076
- data/third_party/upb/upb/def.h +336 -288
- data/third_party/upb/upb/def.hpp +134 -174
- data/third_party/upb/upb/encode.c +228 -186
- data/third_party/upb/upb/encode.h +24 -16
- data/third_party/upb/upb/extension_registry.c +93 -0
- data/third_party/upb/upb/extension_registry.h +84 -0
- data/third_party/upb/upb/internal/decode.h +211 -0
- data/third_party/upb/upb/internal/table.h +385 -0
- data/third_party/upb/upb/internal/upb.h +68 -0
- data/third_party/upb/upb/internal/vsnprintf_compat.h +52 -0
- data/third_party/upb/upb/json_decode.c +1512 -0
- data/third_party/upb/upb/json_decode.h +47 -0
- data/third_party/upb/upb/json_encode.c +780 -0
- data/third_party/upb/upb/json_encode.h +65 -0
- data/third_party/upb/upb/map.c +108 -0
- data/third_party/upb/upb/map.h +117 -0
- data/third_party/upb/upb/message_value.h +66 -0
- data/third_party/upb/upb/mini_table.c +1147 -0
- data/third_party/upb/upb/mini_table.h +189 -0
- data/third_party/upb/upb/mini_table.hpp +112 -0
- data/third_party/upb/upb/msg.c +125 -167
- data/third_party/upb/upb/msg.h +18 -55
- data/third_party/upb/upb/msg_internal.h +352 -284
- data/third_party/upb/upb/port_def.inc +10 -1
- data/third_party/upb/upb/port_undef.inc +2 -0
- data/third_party/upb/upb/reflection.c +150 -267
- data/third_party/upb/upb/reflection.h +36 -126
- data/third_party/upb/upb/reflection.hpp +6 -6
- data/third_party/upb/upb/status.c +86 -0
- data/third_party/upb/upb/status.h +66 -0
- data/third_party/upb/upb/table.c +233 -149
- data/third_party/upb/upb/table_internal.h +9 -324
- data/third_party/upb/upb/text_encode.c +115 -91
- data/third_party/upb/upb/text_encode.h +10 -10
- data/third_party/upb/upb/upb.c +34 -281
- data/third_party/upb/upb/upb.h +79 -262
- data/third_party/upb/upb/upb.hpp +31 -28
- data/third_party/xxhash/xxhash.h +607 -352
- data/third_party/zlib/compress.c +3 -3
- data/third_party/zlib/crc32.c +975 -292
- data/third_party/zlib/crc32.h +9441 -436
- data/third_party/zlib/deflate.c +183 -129
- data/third_party/zlib/deflate.h +12 -15
- data/third_party/zlib/gzguts.h +3 -2
- data/third_party/zlib/gzlib.c +6 -4
- data/third_party/zlib/gzread.c +8 -12
- data/third_party/zlib/gzwrite.c +26 -14
- data/third_party/zlib/infback.c +12 -8
- data/third_party/zlib/inffast.c +14 -14
- data/third_party/zlib/inflate.c +44 -10
- data/third_party/zlib/inflate.h +3 -2
- data/third_party/zlib/inftrees.c +3 -3
- data/third_party/zlib/inftrees.h +1 -1
- data/third_party/zlib/trees.c +85 -107
- data/third_party/zlib/uncompr.c +2 -2
- data/third_party/zlib/zconf.h +16 -3
- data/third_party/zlib/zlib.h +129 -106
- data/third_party/zlib/zutil.c +11 -9
- data/third_party/zlib/zutil.h +13 -9
- metadata +790 -298
- data/include/grpc/impl/codegen/gpr_slice.h +0 -71
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +0 -390
- data/src/core/ext/filters/client_channel/http_connect_handshaker.h +0 -42
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +0 -44
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +0 -83
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +0 -60
- data/src/core/ext/filters/client_channel/lb_policy.cc +0 -131
- data/src/core/ext/filters/client_channel/lb_policy.h +0 -441
- data/src/core/ext/filters/client_channel/lb_policy_factory.h +0 -48
- data/src/core/ext/filters/client_channel/lb_policy_registry.cc +0 -185
- data/src/core/ext/filters/client_channel/lb_policy_registry.h +0 -65
- data/src/core/ext/filters/client_channel/proxy_mapper.h +0 -54
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.cc +0 -89
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.h +0 -50
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_event_engine.cc +0 -31
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_event_engine.cc +0 -28
- data/src/core/ext/filters/client_channel/resolver.cc +0 -87
- data/src/core/ext/filters/client_channel/resolver.h +0 -136
- data/src/core/ext/filters/client_channel/resolver_factory.h +0 -75
- data/src/core/ext/filters/client_channel/resolver_registry.cc +0 -194
- data/src/core/ext/filters/client_channel/resolver_registry.h +0 -88
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +0 -189
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +0 -99
- data/src/core/ext/filters/client_channel/server_address.cc +0 -170
- data/src/core/ext/filters/client_channel/server_address.h +0 -144
- data/src/core/ext/filters/client_channel/subchannel_interface.h +0 -130
- data/src/core/ext/filters/client_idle/client_idle_filter.cc +0 -264
- data/src/core/ext/filters/client_idle/idle_filter_state.cc +0 -96
- data/src/core/ext/filters/client_idle/idle_filter_state.h +0 -66
- data/src/core/ext/filters/fault_injection/service_config_parser.cc +0 -181
- data/src/core/ext/filters/fault_injection/service_config_parser.h +0 -85
- data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +0 -553
- data/src/core/ext/filters/http/message_compress/message_compress_filter.h +0 -53
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +0 -398
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.h +0 -31
- data/src/core/ext/filters/max_age/max_age_filter.cc +0 -560
- data/src/core/ext/filters/max_age/max_age_filter.h +0 -26
- data/src/core/ext/filters/server_config_selector/server_config_selector.cc +0 -67
- data/src/core/ext/service_config/service_config.cc +0 -227
- data/src/core/ext/service_config/service_config.h +0 -127
- data/src/core/ext/service_config/service_config_call_data.h +0 -72
- data/src/core/ext/service_config/service_config_parser.cc +0 -89
- data/src/core/ext/service_config/service_config_parser.h +0 -97
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +0 -122
- data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc +0 -92
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +0 -192
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +0 -52
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +0 -79
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +0 -125
- data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +0 -37
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +0 -107
- data/src/core/ext/transport/chttp2/transport/hpack_utils.cc +0 -46
- data/src/core/ext/transport/chttp2/transport/hpack_utils.h +0 -30
- data/src/core/ext/transport/chttp2/transport/popularity_count.h +0 -60
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.h +0 -64
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.h +0 -64
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.h +0 -64
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.h +0 -64
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.h +0 -64
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/eval.upb.c +0 -102
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/eval.upb.h +0 -306
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/explain.upb.c +0 -56
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/explain.upb.h +0 -135
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/value.upb.c +0 -115
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/value.upb.h +0 -371
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.c +0 -67
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.c +0 -68
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c +0 -67
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.c +0 -69
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.h +0 -35
- data/src/core/ext/xds/certificate_provider_factory.h +0 -61
- data/src/core/ext/xds/certificate_provider_registry.cc +0 -103
- data/src/core/ext/xds/certificate_provider_registry.h +0 -57
- data/src/core/lib/channel/handshaker.cc +0 -222
- data/src/core/lib/channel/handshaker.h +0 -161
- data/src/core/lib/channel/handshaker_factory.h +0 -50
- data/src/core/lib/channel/handshaker_registry.cc +0 -50
- data/src/core/lib/channel/handshaker_registry.h +0 -71
- data/src/core/lib/compression/algorithm_metadata.h +0 -62
- data/src/core/lib/compression/compression_args.cc +0 -140
- data/src/core/lib/compression/compression_args.h +0 -58
- data/src/core/lib/compression/stream_compression.cc +0 -81
- data/src/core/lib/compression/stream_compression.h +0 -117
- data/src/core/lib/compression/stream_compression_gzip.cc +0 -231
- data/src/core/lib/compression/stream_compression_gzip.h +0 -28
- data/src/core/lib/compression/stream_compression_identity.cc +0 -91
- data/src/core/lib/compression/stream_compression_identity.h +0 -29
- data/src/core/lib/event_engine/event_engine_factory.cc +0 -49
- data/src/core/lib/event_engine/event_engine_factory.h +0 -33
- data/src/core/lib/event_engine/sockaddr.cc +0 -40
- data/src/core/lib/event_engine/sockaddr.h +0 -44
- data/src/core/lib/gpr/env.h +0 -40
- data/src/core/lib/gpr/env_linux.cc +0 -75
- data/src/core/lib/gpr/env_posix.cc +0 -46
- data/src/core/lib/gpr/env_windows.cc +0 -74
- data/src/core/lib/gpr/murmur_hash.cc +0 -82
- data/src/core/lib/gpr/murmur_hash.h +0 -29
- data/src/core/lib/gpr/string_windows.h +0 -32
- data/src/core/lib/gpr/tls.h +0 -157
- data/src/core/lib/gprpp/arena.cc +0 -104
- data/src/core/lib/gprpp/arena.h +0 -131
- data/src/core/lib/iomgr/endpoint_pair_event_engine.cc +0 -32
- data/src/core/lib/iomgr/error_internal.h +0 -66
- data/src/core/lib/iomgr/ev_epollex_linux.cc +0 -1654
- data/src/core/lib/iomgr/ev_epollex_linux.h +0 -30
- data/src/core/lib/iomgr/event_engine/closure.cc +0 -77
- data/src/core/lib/iomgr/event_engine/closure.h +0 -42
- data/src/core/lib/iomgr/event_engine/endpoint.cc +0 -172
- data/src/core/lib/iomgr/event_engine/endpoint.h +0 -52
- data/src/core/lib/iomgr/event_engine/iomgr.cc +0 -84
- data/src/core/lib/iomgr/event_engine/pollset.cc +0 -88
- data/src/core/lib/iomgr/event_engine/pollset.h +0 -25
- data/src/core/lib/iomgr/event_engine/promise.h +0 -51
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.cc +0 -41
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.h +0 -35
- data/src/core/lib/iomgr/event_engine/resolver.cc +0 -115
- data/src/core/lib/iomgr/event_engine/tcp.cc +0 -295
- data/src/core/lib/iomgr/event_engine/timer.cc +0 -63
- data/src/core/lib/iomgr/executor/mpmcqueue.cc +0 -182
- data/src/core/lib/iomgr/executor/mpmcqueue.h +0 -171
- data/src/core/lib/iomgr/executor/threadpool.cc +0 -136
- data/src/core/lib/iomgr/executor/threadpool.h +0 -150
- data/src/core/lib/iomgr/iomgr_custom.cc +0 -79
- data/src/core/lib/iomgr/iomgr_custom.h +0 -49
- data/src/core/lib/iomgr/is_epollexclusive_available.cc +0 -119
- data/src/core/lib/iomgr/is_epollexclusive_available.h +0 -36
- data/src/core/lib/iomgr/pollset_custom.cc +0 -105
- data/src/core/lib/iomgr/pollset_custom.h +0 -37
- data/src/core/lib/iomgr/pollset_set_custom.cc +0 -47
- data/src/core/lib/iomgr/pollset_set_custom.h +0 -26
- data/src/core/lib/iomgr/resolve_address_custom.cc +0 -169
- data/src/core/lib/iomgr/resolve_address_custom.h +0 -44
- data/src/core/lib/iomgr/sys_epoll_wrapper.h +0 -30
- data/src/core/lib/iomgr/tcp_client_custom.cc +0 -146
- data/src/core/lib/iomgr/tcp_custom.cc +0 -350
- data/src/core/lib/iomgr/tcp_custom.h +0 -85
- data/src/core/lib/iomgr/tcp_server_custom.cc +0 -457
- data/src/core/lib/iomgr/time_averaged_stats.cc +0 -64
- data/src/core/lib/iomgr/time_averaged_stats.h +0 -72
- data/src/core/lib/iomgr/timer_custom.cc +0 -96
- data/src/core/lib/iomgr/timer_custom.h +0 -43
- data/src/core/lib/iomgr/work_serializer.cc +0 -226
- data/src/core/lib/iomgr/work_serializer.h +0 -93
- data/src/core/lib/profiling/basic_timers.cc +0 -295
- data/src/core/lib/profiling/stap_timers.cc +0 -50
- data/src/core/lib/profiling/timers.h +0 -94
- data/src/core/lib/security/authorization/sdk_server_authz_filter.cc +0 -173
- data/src/core/lib/security/authorization/sdk_server_authz_filter.h +0 -67
- data/src/core/lib/security/credentials/credentials_metadata.cc +0 -61
- data/src/core/lib/security/security_connector/load_system_roots_linux.cc +0 -170
- data/src/core/lib/security/security_connector/load_system_roots_linux.h +0 -46
- data/src/core/lib/slice/slice_api.cc +0 -39
- data/src/core/lib/slice/slice_intern.cc +0 -367
- data/src/core/lib/slice/slice_refcount_base.h +0 -181
- data/src/core/lib/slice/slice_split.cc +0 -100
- data/src/core/lib/slice/slice_split.h +0 -40
- data/src/core/lib/slice/slice_utils.h +0 -200
- data/src/core/lib/slice/static_slice.cc +0 -377
- data/src/core/lib/slice/static_slice.h +0 -300
- data/src/core/lib/surface/init_secure.cc +0 -103
- data/src/core/lib/transport/byte_stream.cc +0 -162
- data/src/core/lib/transport/byte_stream.h +0 -166
- data/src/core/lib/transport/metadata.cc +0 -714
- data/src/core/lib/transport/metadata.h +0 -449
- data/src/core/lib/transport/static_metadata.cc +0 -1032
- data/src/core/lib/transport/static_metadata.h +0 -322
- data/src/core/lib/transport/status_metadata.cc +0 -63
- data/src/core/lib/transport/status_metadata.h +0 -48
- data/third_party/abseil-cpp/absl/container/internal/have_sse.h +0 -50
- data/third_party/cares/cares/ares.h +0 -670
- data/third_party/cares/cares/ares__close_sockets.c +0 -61
- data/third_party/cares/cares/ares__get_hostent.c +0 -261
- data/third_party/cares/cares/ares_create_query.c +0 -206
- data/third_party/cares/cares/ares_data.c +0 -222
- data/third_party/cares/cares/ares_data.h +0 -72
- data/third_party/cares/cares/ares_dns.h +0 -103
- data/third_party/cares/cares/ares_expand_name.c +0 -209
- data/third_party/cares/cares/ares_expand_string.c +0 -70
- data/third_party/cares/cares/ares_free_hostent.c +0 -41
- data/third_party/cares/cares/ares_getenv.c +0 -30
- data/third_party/cares/cares/ares_gethostbyaddr.c +0 -294
- data/third_party/cares/cares/ares_gethostbyname.c +0 -529
- data/third_party/cares/cares/ares_getnameinfo.c +0 -453
- data/third_party/cares/cares/ares_getopt.c +0 -122
- data/third_party/cares/cares/ares_getopt.h +0 -53
- data/third_party/cares/cares/ares_init.c +0 -2615
- data/third_party/cares/cares/ares_ipv6.h +0 -78
- data/third_party/cares/cares/ares_library_init.c +0 -195
- data/third_party/cares/cares/ares_library_init.h +0 -43
- data/third_party/cares/cares/ares_parse_a_reply.c +0 -264
- data/third_party/cares/cares/ares_parse_aaaa_reply.c +0 -264
- data/third_party/cares/cares/ares_parse_mx_reply.c +0 -170
- data/third_party/cares/cares/ares_parse_naptr_reply.c +0 -194
- data/third_party/cares/cares/ares_parse_ns_reply.c +0 -183
- data/third_party/cares/cares/ares_parse_ptr_reply.c +0 -221
- data/third_party/cares/cares/ares_parse_soa_reply.c +0 -133
- data/third_party/cares/cares/ares_parse_srv_reply.c +0 -179
- data/third_party/cares/cares/ares_parse_txt_reply.c +0 -220
- data/third_party/cares/cares/ares_private.h +0 -382
- data/third_party/cares/cares/ares_process.c +0 -1473
- data/third_party/cares/cares/ares_query.c +0 -186
- data/third_party/cares/cares/ares_search.c +0 -323
- data/third_party/cares/cares/ares_send.c +0 -137
- data/third_party/cares/cares/ares_setup.h +0 -217
- data/third_party/cares/cares/ares_strsplit.c +0 -174
- data/third_party/cares/cares/ares_version.h +0 -24
- data/third_party/cares/cares/inet_net_pton.c +0 -450
- data/third_party/cares/cares/inet_ntop.c +0 -207
- data/third_party/upb/upb/decode_internal.h +0 -194
- data/third_party/upb/upb/upb_internal.h +0 -58
- /data/third_party/cares/cares/{ares_rules.h → include/ares_rules.h} +0 -0
- /data/third_party/cares/cares/{ares__read_line.c → src/lib/ares__read_line.c} +0 -0
- /data/third_party/cares/cares/{ares__timeval.c → src/lib/ares__timeval.c} +0 -0
- /data/third_party/cares/cares/{ares_cancel.c → src/lib/ares_cancel.c} +0 -0
- /data/third_party/cares/cares/{ares_destroy.c → src/lib/ares_destroy.c} +0 -0
- /data/third_party/cares/cares/{ares_fds.c → src/lib/ares_fds.c} +0 -0
- /data/third_party/cares/cares/{ares_free_string.c → src/lib/ares_free_string.c} +0 -0
- /data/third_party/cares/cares/{ares_getenv.h → src/lib/ares_getenv.h} +0 -0
- /data/third_party/cares/cares/{ares_getsock.c → src/lib/ares_getsock.c} +0 -0
- /data/third_party/cares/cares/{ares_inet_net_pton.h → src/lib/ares_inet_net_pton.h} +0 -0
- /data/third_party/cares/cares/{ares_iphlpapi.h → src/lib/ares_iphlpapi.h} +0 -0
- /data/third_party/cares/cares/{ares_llist.c → src/lib/ares_llist.c} +0 -0
- /data/third_party/cares/cares/{ares_llist.h → src/lib/ares_llist.h} +0 -0
- /data/third_party/cares/cares/{ares_mkquery.c → src/lib/ares_mkquery.c} +0 -0
- /data/third_party/cares/cares/{ares_nowarn.c → src/lib/ares_nowarn.c} +0 -0
- /data/third_party/cares/cares/{ares_nowarn.h → src/lib/ares_nowarn.h} +0 -0
- /data/third_party/cares/cares/{ares_options.c → src/lib/ares_options.c} +0 -0
- /data/third_party/cares/cares/{ares_platform.c → src/lib/ares_platform.c} +0 -0
- /data/third_party/cares/cares/{ares_platform.h → src/lib/ares_platform.h} +0 -0
- /data/third_party/cares/cares/{ares_strcasecmp.c → src/lib/ares_strcasecmp.c} +0 -0
- /data/third_party/cares/cares/{ares_strcasecmp.h → src/lib/ares_strcasecmp.h} +0 -0
- /data/third_party/cares/cares/{ares_strdup.c → src/lib/ares_strdup.c} +0 -0
- /data/third_party/cares/cares/{ares_strdup.h → src/lib/ares_strdup.h} +0 -0
- /data/third_party/cares/cares/{ares_strerror.c → src/lib/ares_strerror.c} +0 -0
- /data/third_party/cares/cares/{ares_strsplit.h → src/lib/ares_strsplit.h} +0 -0
- /data/third_party/cares/cares/{ares_timeout.c → src/lib/ares_timeout.c} +0 -0
- /data/third_party/cares/cares/{ares_version.c → src/lib/ares_version.c} +0 -0
- /data/third_party/cares/cares/{ares_writev.c → src/lib/ares_writev.c} +0 -0
- /data/third_party/cares/cares/{bitncmp.c → src/lib/bitncmp.c} +0 -0
- /data/third_party/cares/cares/{bitncmp.h → src/lib/bitncmp.h} +0 -0
- /data/third_party/cares/cares/{config-win32.h → src/lib/config-win32.h} +0 -0
- /data/third_party/cares/cares/{setup_once.h → src/lib/setup_once.h} +0 -0
- /data/third_party/cares/cares/{windows_port.c → src/lib/windows_port.c} +0 -0
@@ -17,35 +17,60 @@
|
|
17
17
|
#include <grpc/support/port_platform.h>
|
18
18
|
|
19
19
|
#include <inttypes.h>
|
20
|
-
#include <
|
21
|
-
|
20
|
+
#include <stddef.h>
|
21
|
+
|
22
|
+
#include <algorithm>
|
23
|
+
#include <map>
|
24
|
+
#include <memory>
|
25
|
+
#include <set>
|
26
|
+
#include <string>
|
27
|
+
#include <type_traits>
|
28
|
+
#include <utility>
|
29
|
+
#include <vector>
|
30
|
+
|
31
|
+
#include "absl/status/status.h"
|
32
|
+
#include "absl/status/statusor.h"
|
22
33
|
#include "absl/strings/str_cat.h"
|
34
|
+
#include "absl/strings/str_join.h"
|
35
|
+
#include "absl/strings/string_view.h"
|
23
36
|
#include "absl/types/optional.h"
|
24
37
|
|
38
|
+
#include <grpc/event_engine/event_engine.h>
|
25
39
|
#include <grpc/grpc.h>
|
40
|
+
#include <grpc/impl/connectivity_state.h>
|
41
|
+
#include <grpc/support/log.h>
|
26
42
|
|
27
|
-
#include "src/core/ext/filters/client_channel/client_channel.h"
|
28
|
-
#include "src/core/ext/filters/client_channel/lb_policy.h"
|
29
43
|
#include "src/core/ext/filters/client_channel/lb_policy/address_filtering.h"
|
30
44
|
#include "src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h"
|
31
|
-
#include "src/core/ext/filters/client_channel/lb_policy/
|
32
|
-
#include "src/core/ext/filters/client_channel/lb_policy/xds/xds.h"
|
45
|
+
#include "src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.h"
|
33
46
|
#include "src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h"
|
34
|
-
#include "src/core/ext/filters/client_channel/lb_policy_factory.h"
|
35
|
-
#include "src/core/ext/filters/client_channel/lb_policy_registry.h"
|
36
47
|
#include "src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h"
|
37
|
-
#include "src/core/ext/
|
38
|
-
#include "src/core/ext/
|
39
|
-
#include "src/core/ext/xds/xds_channel_args.h"
|
48
|
+
#include "src/core/ext/xds/xds_bootstrap.h"
|
49
|
+
#include "src/core/ext/xds/xds_bootstrap_grpc.h"
|
40
50
|
#include "src/core/ext/xds/xds_client.h"
|
51
|
+
#include "src/core/ext/xds/xds_client_grpc.h"
|
41
52
|
#include "src/core/ext/xds/xds_client_stats.h"
|
53
|
+
#include "src/core/ext/xds/xds_endpoint.h"
|
42
54
|
#include "src/core/lib/channel/channel_args.h"
|
43
|
-
#include "src/core/lib/
|
55
|
+
#include "src/core/lib/config/core_configuration.h"
|
56
|
+
#include "src/core/lib/debug/trace.h"
|
57
|
+
#include "src/core/lib/gprpp/debug_location.h"
|
44
58
|
#include "src/core/lib/gprpp/orphanable.h"
|
45
59
|
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
46
|
-
#include "src/core/lib/
|
47
|
-
#include "src/core/lib/
|
48
|
-
#include "src/core/lib/
|
60
|
+
#include "src/core/lib/gprpp/validation_errors.h"
|
61
|
+
#include "src/core/lib/gprpp/work_serializer.h"
|
62
|
+
#include "src/core/lib/iomgr/pollset_set.h"
|
63
|
+
#include "src/core/lib/json/json.h"
|
64
|
+
#include "src/core/lib/json/json_args.h"
|
65
|
+
#include "src/core/lib/json/json_object_loader.h"
|
66
|
+
#include "src/core/lib/load_balancing/lb_policy.h"
|
67
|
+
#include "src/core/lib/load_balancing/lb_policy_factory.h"
|
68
|
+
#include "src/core/lib/load_balancing/lb_policy_registry.h"
|
69
|
+
#include "src/core/lib/load_balancing/subchannel_interface.h"
|
70
|
+
#include "src/core/lib/resolver/resolver.h"
|
71
|
+
#include "src/core/lib/resolver/resolver_registry.h"
|
72
|
+
#include "src/core/lib/resolver/server_address.h"
|
73
|
+
#include "src/core/lib/transport/connectivity_state.h"
|
49
74
|
|
50
75
|
#define GRPC_EDS_DEFAULT_FALLBACK_TIMEOUT 10000
|
51
76
|
|
@@ -53,18 +78,17 @@ namespace grpc_core {
|
|
53
78
|
|
54
79
|
TraceFlag grpc_lb_xds_cluster_resolver_trace(false, "xds_cluster_resolver_lb");
|
55
80
|
|
56
|
-
const char* kXdsLocalityNameAttributeKey = "xds_locality_name";
|
57
|
-
|
58
81
|
namespace {
|
59
82
|
|
60
|
-
constexpr
|
83
|
+
constexpr absl::string_view kXdsClusterResolver =
|
84
|
+
"xds_cluster_resolver_experimental";
|
61
85
|
|
62
86
|
// Config for EDS LB policy.
|
63
87
|
class XdsClusterResolverLbConfig : public LoadBalancingPolicy::Config {
|
64
88
|
public:
|
65
89
|
struct DiscoveryMechanism {
|
66
90
|
std::string cluster_name;
|
67
|
-
absl::optional<
|
91
|
+
absl::optional<GrpcXdsBootstrap::GrpcXdsServer> lrs_load_reporting_server;
|
68
92
|
uint32_t max_concurrent_requests;
|
69
93
|
enum DiscoveryMechanismType {
|
70
94
|
EDS,
|
@@ -74,29 +98,54 @@ class XdsClusterResolverLbConfig : public LoadBalancingPolicy::Config {
|
|
74
98
|
std::string eds_service_name;
|
75
99
|
std::string dns_hostname;
|
76
100
|
|
101
|
+
Json::Array override_host_statuses;
|
102
|
+
|
103
|
+
// This is type Json::Object instead of OutlierDetectionConfig, because we
|
104
|
+
// don't actually need to validate the contents of the outlier detection
|
105
|
+
// config here. In this case, the JSON is generated by the CDS policy
|
106
|
+
// instead of coming from service config, so it's not actually any better
|
107
|
+
// to catch the problem here than it is to catch it in the
|
108
|
+
// outlier_detection policy itself, so here we just act as a pass-through.
|
109
|
+
absl::optional<Json::Object> outlier_detection_lb_config;
|
110
|
+
|
77
111
|
bool operator==(const DiscoveryMechanism& other) const {
|
78
112
|
return (cluster_name == other.cluster_name &&
|
79
|
-
|
80
|
-
other.lrs_load_reporting_server_name &&
|
113
|
+
lrs_load_reporting_server == other.lrs_load_reporting_server &&
|
81
114
|
max_concurrent_requests == other.max_concurrent_requests &&
|
82
115
|
type == other.type &&
|
83
116
|
eds_service_name == other.eds_service_name &&
|
84
|
-
dns_hostname == other.dns_hostname
|
117
|
+
dns_hostname == other.dns_hostname &&
|
118
|
+
override_host_statuses == other.override_host_statuses &&
|
119
|
+
outlier_detection_lb_config == other.outlier_detection_lb_config);
|
85
120
|
}
|
121
|
+
|
122
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&);
|
123
|
+
void JsonPostLoad(const Json& json, const JsonArgs& args,
|
124
|
+
ValidationErrors* errors);
|
86
125
|
};
|
87
126
|
|
88
|
-
XdsClusterResolverLbConfig(
|
89
|
-
|
90
|
-
|
91
|
-
|
127
|
+
XdsClusterResolverLbConfig() = default;
|
128
|
+
|
129
|
+
XdsClusterResolverLbConfig(const XdsClusterResolverLbConfig&) = delete;
|
130
|
+
XdsClusterResolverLbConfig& operator=(const XdsClusterResolverLbConfig&) =
|
131
|
+
delete;
|
132
|
+
|
133
|
+
XdsClusterResolverLbConfig(XdsClusterResolverLbConfig&& other) = delete;
|
134
|
+
XdsClusterResolverLbConfig& operator=(XdsClusterResolverLbConfig&& other) =
|
135
|
+
delete;
|
136
|
+
|
137
|
+
absl::string_view name() const override { return kXdsClusterResolver; }
|
92
138
|
|
93
|
-
const char* name() const override { return kXdsClusterResolver; }
|
94
139
|
const std::vector<DiscoveryMechanism>& discovery_mechanisms() const {
|
95
140
|
return discovery_mechanisms_;
|
96
141
|
}
|
97
142
|
|
98
143
|
const Json& xds_lb_policy() const { return xds_lb_policy_; }
|
99
144
|
|
145
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&);
|
146
|
+
void JsonPostLoad(const Json& json, const JsonArgs& args,
|
147
|
+
ValidationErrors* errors);
|
148
|
+
|
100
149
|
private:
|
101
150
|
std::vector<DiscoveryMechanism> discovery_mechanisms_;
|
102
151
|
Json xds_lb_policy_;
|
@@ -105,12 +154,11 @@ class XdsClusterResolverLbConfig : public LoadBalancingPolicy::Config {
|
|
105
154
|
// Xds Cluster Resolver LB policy.
|
106
155
|
class XdsClusterResolverLb : public LoadBalancingPolicy {
|
107
156
|
public:
|
108
|
-
XdsClusterResolverLb(RefCountedPtr<XdsClient> xds_client, Args args
|
109
|
-
std::string server_name, bool is_xds_uri);
|
157
|
+
XdsClusterResolverLb(RefCountedPtr<XdsClient> xds_client, Args args);
|
110
158
|
|
111
|
-
|
159
|
+
absl::string_view name() const override { return kXdsClusterResolver; }
|
112
160
|
|
113
|
-
|
161
|
+
absl::Status UpdateLocked(UpdateArgs args) override;
|
114
162
|
void ResetBackoffLocked() override;
|
115
163
|
void ExitIdleLocked() override;
|
116
164
|
|
@@ -130,25 +178,14 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
130
178
|
RefCountedPtr<XdsClusterResolverLb> xds_cluster_resolver_lb,
|
131
179
|
size_t index)
|
132
180
|
: parent_(std::move(xds_cluster_resolver_lb)), index_(index) {}
|
133
|
-
virtual void Start() = 0;
|
134
|
-
void Orphan() override = 0;
|
135
|
-
virtual Json::Array override_child_policy() = 0;
|
136
|
-
virtual bool disable_reresolution() = 0;
|
137
|
-
|
138
|
-
// Returns a pair containing the cluster and eds_service_name
|
139
|
-
// to use for LRS load reporting. Caller must ensure that config_ is set
|
140
|
-
// before calling.
|
141
|
-
std::pair<absl::string_view, absl::string_view> GetLrsClusterKey() const {
|
142
|
-
if (!parent_->is_xds_uri_) return {parent_->server_name_, nullptr};
|
143
|
-
return {
|
144
|
-
parent_->config_->discovery_mechanisms()[index_].cluster_name,
|
145
|
-
parent_->config_->discovery_mechanisms()[index_].eds_service_name};
|
146
|
-
}
|
147
181
|
|
148
|
-
protected:
|
149
182
|
XdsClusterResolverLb* parent() const { return parent_.get(); }
|
150
183
|
size_t index() const { return index_; }
|
151
184
|
|
185
|
+
virtual void Start() = 0;
|
186
|
+
virtual Json::Array override_child_policy() = 0;
|
187
|
+
virtual bool disable_reresolution() = 0;
|
188
|
+
|
152
189
|
private:
|
153
190
|
RefCountedPtr<XdsClusterResolverLb> parent_;
|
154
191
|
// Stores its own index in the vector of DiscoveryMechanism.
|
@@ -167,7 +204,7 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
167
204
|
bool disable_reresolution() override { return true; }
|
168
205
|
|
169
206
|
private:
|
170
|
-
class EndpointWatcher : public
|
207
|
+
class EndpointWatcher : public XdsEndpointResourceType::WatcherInterface {
|
171
208
|
public:
|
172
209
|
explicit EndpointWatcher(
|
173
210
|
RefCountedPtr<EdsDiscoveryMechanism> discovery_mechanism)
|
@@ -175,32 +212,27 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
175
212
|
~EndpointWatcher() override {
|
176
213
|
discovery_mechanism_.reset(DEBUG_LOCATION, "EndpointWatcher");
|
177
214
|
}
|
178
|
-
void
|
179
|
-
Ref()
|
215
|
+
void OnResourceChanged(XdsEndpointResource update) override {
|
216
|
+
RefCountedPtr<EndpointWatcher> self = Ref();
|
180
217
|
discovery_mechanism_->parent()->work_serializer()->Run(
|
181
|
-
|
182
|
-
|
183
|
-
[this, update]() mutable {
|
184
|
-
OnEndpointChangedHelper(std::move(update));
|
185
|
-
Unref();
|
218
|
+
[self = std::move(self), update = std::move(update)]() mutable {
|
219
|
+
self->OnResourceChangedHelper(std::move(update));
|
186
220
|
},
|
187
221
|
DEBUG_LOCATION);
|
188
222
|
}
|
189
|
-
void OnError(
|
190
|
-
Ref()
|
223
|
+
void OnError(absl::Status status) override {
|
224
|
+
RefCountedPtr<EndpointWatcher> self = Ref();
|
191
225
|
discovery_mechanism_->parent()->work_serializer()->Run(
|
192
|
-
[
|
193
|
-
OnErrorHelper(
|
194
|
-
Unref();
|
226
|
+
[self = std::move(self), status = std::move(status)]() mutable {
|
227
|
+
self->OnErrorHelper(std::move(status));
|
195
228
|
},
|
196
229
|
DEBUG_LOCATION);
|
197
230
|
}
|
198
231
|
void OnResourceDoesNotExist() override {
|
199
|
-
Ref()
|
232
|
+
RefCountedPtr<EndpointWatcher> self = Ref();
|
200
233
|
discovery_mechanism_->parent()->work_serializer()->Run(
|
201
|
-
[
|
202
|
-
OnResourceDoesNotExistHelper();
|
203
|
-
Unref();
|
234
|
+
[self = std::move(self)]() {
|
235
|
+
self->OnResourceDoesNotExistHelper();
|
204
236
|
},
|
205
237
|
DEBUG_LOCATION);
|
206
238
|
}
|
@@ -209,17 +241,45 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
209
241
|
// Code accessing protected methods of `DiscoveryMechanism` need to be
|
210
242
|
// in methods of this class rather than in lambdas to work around an MSVC
|
211
243
|
// bug.
|
212
|
-
void
|
244
|
+
void OnResourceChangedHelper(XdsEndpointResource update) {
|
245
|
+
std::string resolution_note;
|
246
|
+
if (update.priorities.empty()) {
|
247
|
+
resolution_note = absl::StrCat(
|
248
|
+
"EDS resource ", discovery_mechanism_->GetEdsResourceName(),
|
249
|
+
" contains no localities");
|
250
|
+
} else {
|
251
|
+
std::set<std::string> empty_localities;
|
252
|
+
for (const auto& priority : update.priorities) {
|
253
|
+
for (const auto& p : priority.localities) {
|
254
|
+
if (p.second.endpoints.empty()) {
|
255
|
+
empty_localities.insert(p.first->AsHumanReadableString());
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
if (!empty_localities.empty()) {
|
260
|
+
resolution_note = absl::StrCat(
|
261
|
+
"EDS resource ", discovery_mechanism_->GetEdsResourceName(),
|
262
|
+
" contains empty localities: [",
|
263
|
+
absl::StrJoin(empty_localities, "; "), "]");
|
264
|
+
}
|
265
|
+
}
|
213
266
|
discovery_mechanism_->parent()->OnEndpointChanged(
|
214
|
-
discovery_mechanism_->index(), std::move(update)
|
267
|
+
discovery_mechanism_->index(), std::move(update),
|
268
|
+
std::move(resolution_note));
|
215
269
|
}
|
216
|
-
void OnErrorHelper(
|
217
|
-
discovery_mechanism_->parent()->OnError(
|
218
|
-
|
270
|
+
void OnErrorHelper(absl::Status status) {
|
271
|
+
discovery_mechanism_->parent()->OnError(
|
272
|
+
discovery_mechanism_->index(),
|
273
|
+
absl::StrCat("EDS watcher error for resource ",
|
274
|
+
discovery_mechanism_->GetEdsResourceName(), " (",
|
275
|
+
status.ToString(), ")"));
|
219
276
|
}
|
220
277
|
void OnResourceDoesNotExistHelper() {
|
221
278
|
discovery_mechanism_->parent()->OnResourceDoesNotExist(
|
222
|
-
discovery_mechanism_->index()
|
279
|
+
discovery_mechanism_->index(),
|
280
|
+
absl::StrCat("EDS resource ",
|
281
|
+
discovery_mechanism_->GetEdsResourceName(),
|
282
|
+
" does not exist"));
|
223
283
|
}
|
224
284
|
RefCountedPtr<EdsDiscoveryMechanism> discovery_mechanism_;
|
225
285
|
};
|
@@ -229,15 +289,9 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
229
289
|
friend class EndpointWatcher;
|
230
290
|
|
231
291
|
absl::string_view GetEdsResourceName() const {
|
232
|
-
|
233
|
-
if (!
|
234
|
-
|
235
|
-
.eds_service_name.empty()) {
|
236
|
-
return parent()
|
237
|
-
->config_->discovery_mechanisms()[index()]
|
238
|
-
.eds_service_name;
|
239
|
-
}
|
240
|
-
return parent()->config_->discovery_mechanisms()[index()].cluster_name;
|
292
|
+
auto& config = parent()->config_->discovery_mechanisms()[index()];
|
293
|
+
if (!config.eds_service_name.empty()) return config.eds_service_name;
|
294
|
+
return config.cluster_name;
|
241
295
|
}
|
242
296
|
|
243
297
|
// Note that this is not owned, so this pointer must never be dereferenced.
|
@@ -270,9 +324,7 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
270
324
|
|
271
325
|
~ResolverResultHandler() override {}
|
272
326
|
|
273
|
-
void
|
274
|
-
|
275
|
-
void ReturnError(grpc_error_handle error) override;
|
327
|
+
void ReportResult(Resolver::Result result) override;
|
276
328
|
|
277
329
|
private:
|
278
330
|
RefCountedPtr<LogicalDNSDiscoveryMechanism> discovery_mechanism_;
|
@@ -282,20 +334,28 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
282
334
|
// access protected member in base class.
|
283
335
|
friend class ResolverResultHandler;
|
284
336
|
|
337
|
+
absl::string_view GetDnsHostname() const {
|
338
|
+
auto& config = parent()->config_->discovery_mechanisms()[index()];
|
339
|
+
return config.dns_hostname;
|
340
|
+
}
|
341
|
+
|
285
342
|
OrphanablePtr<Resolver> resolver_;
|
286
343
|
};
|
287
344
|
|
288
345
|
struct DiscoveryMechanismEntry {
|
289
346
|
OrphanablePtr<DiscoveryMechanism> discovery_mechanism;
|
290
|
-
|
291
|
-
|
292
|
-
//
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
347
|
+
// Most recent update reported by the discovery mechanism.
|
348
|
+
absl::optional<XdsEndpointResource> latest_update;
|
349
|
+
// Last resolution note reported by the discovery mechanism, if any.
|
350
|
+
std::string resolution_note;
|
351
|
+
// State used to retain child policy names for priority policy.
|
352
|
+
std::vector<size_t /*child_number*/> priority_child_numbers;
|
353
|
+
size_t next_available_child_number = 0;
|
354
|
+
|
355
|
+
const XdsClusterResolverLbConfig::DiscoveryMechanism& config() const;
|
356
|
+
|
357
|
+
// Returns the child policy name for a given priority.
|
358
|
+
std::string GetChildPolicyName(size_t priority) const;
|
299
359
|
};
|
300
360
|
|
301
361
|
class Helper : public ChannelControlHelper {
|
@@ -310,13 +370,14 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
310
370
|
}
|
311
371
|
|
312
372
|
RefCountedPtr<SubchannelInterface> CreateSubchannel(
|
313
|
-
ServerAddress address, const
|
373
|
+
ServerAddress address, const ChannelArgs& args) override;
|
314
374
|
void UpdateState(grpc_connectivity_state state, const absl::Status& status,
|
315
|
-
|
375
|
+
RefCountedPtr<SubchannelPicker> picker) override;
|
316
376
|
// This is a no-op, because we get the addresses from the xds
|
317
377
|
// client, which is a watch-based API.
|
318
378
|
void RequestReresolution() override {}
|
319
379
|
absl::string_view GetAuthority() override;
|
380
|
+
grpc_event_engine::experimental::EventEngine* GetEventEngine() override;
|
320
381
|
void AddTraceEvent(TraceSeverity severity,
|
321
382
|
absl::string_view message) override;
|
322
383
|
|
@@ -328,30 +389,26 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
328
389
|
|
329
390
|
void ShutdownLocked() override;
|
330
391
|
|
331
|
-
void OnEndpointChanged(size_t index,
|
332
|
-
|
333
|
-
void
|
392
|
+
void OnEndpointChanged(size_t index, XdsEndpointResource update,
|
393
|
+
std::string resolution_note);
|
394
|
+
void OnError(size_t index, std::string resolution_note);
|
395
|
+
void OnResourceDoesNotExist(size_t index, std::string resolution_note);
|
334
396
|
|
335
397
|
void MaybeDestroyChildPolicyLocked();
|
336
398
|
|
337
|
-
|
338
|
-
void UpdateChildPolicyLocked();
|
399
|
+
absl::Status UpdateChildPolicyLocked();
|
339
400
|
OrphanablePtr<LoadBalancingPolicy> CreateChildPolicyLocked(
|
340
|
-
const
|
401
|
+
const ChannelArgs& args);
|
341
402
|
ServerAddressList CreateChildPolicyAddressesLocked();
|
403
|
+
std::string CreateChildPolicyResolutionNoteLocked();
|
342
404
|
RefCountedPtr<Config> CreateChildPolicyConfigLocked();
|
343
|
-
|
344
|
-
const grpc_channel_args* args_in);
|
405
|
+
ChannelArgs CreateChildPolicyArgsLocked(const ChannelArgs& args_in);
|
345
406
|
|
346
407
|
// The xds client and endpoint watcher.
|
347
408
|
RefCountedPtr<XdsClient> xds_client_;
|
348
409
|
|
349
|
-
// Server name from target URI.
|
350
|
-
std::string server_name_;
|
351
|
-
bool is_xds_uri_;
|
352
|
-
|
353
410
|
// Current channel args and config from the resolver.
|
354
|
-
|
411
|
+
ChannelArgs args_;
|
355
412
|
RefCountedPtr<XdsClusterResolverLbConfig> config_;
|
356
413
|
|
357
414
|
// Internal state.
|
@@ -360,11 +417,6 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
360
417
|
// Vector of discovery mechansism entries in priority order.
|
361
418
|
std::vector<DiscoveryMechanismEntry> discovery_mechanisms_;
|
362
419
|
|
363
|
-
// The latest data from the endpoint watcher.
|
364
|
-
XdsApi::EdsUpdate::PriorityList priority_list_;
|
365
|
-
// State used to retain child policy names for priority policy.
|
366
|
-
std::vector<size_t /*child_number*/> priority_child_numbers_;
|
367
|
-
|
368
420
|
OrphanablePtr<LoadBalancingPolicy> child_policy_;
|
369
421
|
};
|
370
422
|
|
@@ -374,7 +426,7 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
374
426
|
|
375
427
|
RefCountedPtr<SubchannelInterface>
|
376
428
|
XdsClusterResolverLb::Helper::CreateSubchannel(ServerAddress address,
|
377
|
-
const
|
429
|
+
const ChannelArgs& args) {
|
378
430
|
if (xds_cluster_resolver_policy_->shutting_down_) return nullptr;
|
379
431
|
return xds_cluster_resolver_policy_->channel_control_helper()
|
380
432
|
->CreateSubchannel(std::move(address), args);
|
@@ -382,7 +434,7 @@ XdsClusterResolverLb::Helper::CreateSubchannel(ServerAddress address,
|
|
382
434
|
|
383
435
|
void XdsClusterResolverLb::Helper::UpdateState(
|
384
436
|
grpc_connectivity_state state, const absl::Status& status,
|
385
|
-
|
437
|
+
RefCountedPtr<SubchannelPicker> picker) {
|
386
438
|
if (xds_cluster_resolver_policy_->shutting_down_ ||
|
387
439
|
xds_cluster_resolver_policy_->child_policy_ == nullptr) {
|
388
440
|
return;
|
@@ -402,6 +454,12 @@ absl::string_view XdsClusterResolverLb::Helper::GetAuthority() {
|
|
402
454
|
return xds_cluster_resolver_policy_->channel_control_helper()->GetAuthority();
|
403
455
|
}
|
404
456
|
|
457
|
+
grpc_event_engine::experimental::EventEngine*
|
458
|
+
XdsClusterResolverLb::Helper::GetEventEngine() {
|
459
|
+
return xds_cluster_resolver_policy_->channel_control_helper()
|
460
|
+
->GetEventEngine();
|
461
|
+
}
|
462
|
+
|
405
463
|
void XdsClusterResolverLb::Helper::AddTraceEvent(TraceSeverity severity,
|
406
464
|
absl::string_view message) {
|
407
465
|
if (xds_cluster_resolver_policy_->shutting_down_) return;
|
@@ -423,8 +481,8 @@ void XdsClusterResolverLb::EdsDiscoveryMechanism::Start() {
|
|
423
481
|
auto watcher = MakeRefCounted<EndpointWatcher>(
|
424
482
|
Ref(DEBUG_LOCATION, "EdsDiscoveryMechanism"));
|
425
483
|
watcher_ = watcher.get();
|
426
|
-
parent()->xds_client_
|
427
|
-
|
484
|
+
XdsEndpointResourceType::StartWatch(parent()->xds_client_.get(),
|
485
|
+
GetEdsResourceName(), std::move(watcher));
|
428
486
|
}
|
429
487
|
|
430
488
|
void XdsClusterResolverLb::EdsDiscoveryMechanism::Orphan() {
|
@@ -434,8 +492,8 @@ void XdsClusterResolverLb::EdsDiscoveryMechanism::Orphan() {
|
|
434
492
|
":%p cancelling xds watch for %s",
|
435
493
|
parent(), index(), this, std::string(GetEdsResourceName()).c_str());
|
436
494
|
}
|
437
|
-
parent()->xds_client_
|
438
|
-
|
495
|
+
XdsEndpointResourceType::CancelWatch(parent()->xds_client_.get(),
|
496
|
+
GetEdsResourceName(), watcher_);
|
439
497
|
Unref();
|
440
498
|
}
|
441
499
|
|
@@ -444,30 +502,26 @@ void XdsClusterResolverLb::EdsDiscoveryMechanism::Orphan() {
|
|
444
502
|
//
|
445
503
|
|
446
504
|
void XdsClusterResolverLb::LogicalDNSDiscoveryMechanism::Start() {
|
447
|
-
std::string target
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
grpc_channel_args_find_pointer<FakeResolverResponseGenerator>(
|
452
|
-
parent()->args_,
|
505
|
+
std::string target;
|
506
|
+
ChannelArgs args = parent()->args_;
|
507
|
+
auto* fake_resolver_response_generator =
|
508
|
+
args.GetPointer<FakeResolverResponseGenerator>(
|
453
509
|
GRPC_ARG_XDS_LOGICAL_DNS_CLUSTER_FAKE_RESOLVER_RESPONSE_GENERATOR);
|
454
510
|
if (fake_resolver_response_generator != nullptr) {
|
455
|
-
target = absl::StrCat("fake:",
|
456
|
-
|
457
|
-
fake_resolver_response_generator);
|
458
|
-
args = grpc_channel_args_copy_and_add(parent()->args_, &new_arg, 1);
|
511
|
+
target = absl::StrCat("fake:", GetDnsHostname());
|
512
|
+
args = args.SetObject(fake_resolver_response_generator->Ref());
|
459
513
|
} else {
|
460
|
-
target = absl::StrCat("dns:",
|
461
|
-
args = grpc_channel_args_copy(parent()->args_);
|
514
|
+
target = absl::StrCat("dns:", GetDnsHostname());
|
462
515
|
}
|
463
|
-
resolver_ =
|
516
|
+
resolver_ = CoreConfiguration::Get().resolver_registry().CreateResolver(
|
464
517
|
target.c_str(), args, parent()->interested_parties(),
|
465
518
|
parent()->work_serializer(),
|
466
|
-
|
519
|
+
std::make_unique<ResolverResultHandler>(
|
467
520
|
Ref(DEBUG_LOCATION, "LogicalDNSDiscoveryMechanism")));
|
468
|
-
grpc_channel_args_destroy(args);
|
469
521
|
if (resolver_ == nullptr) {
|
470
|
-
parent()->OnResourceDoesNotExist(
|
522
|
+
parent()->OnResourceDoesNotExist(
|
523
|
+
index(),
|
524
|
+
absl::StrCat("error creating DNS resolver for ", GetDnsHostname()));
|
471
525
|
return;
|
472
526
|
}
|
473
527
|
resolver_->StartLocked();
|
@@ -496,23 +550,45 @@ void XdsClusterResolverLb::LogicalDNSDiscoveryMechanism::Orphan() {
|
|
496
550
|
//
|
497
551
|
|
498
552
|
void XdsClusterResolverLb::LogicalDNSDiscoveryMechanism::ResolverResultHandler::
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
553
|
+
ReportResult(Resolver::Result result) {
|
554
|
+
XdsClusterResolverLb* lb_policy = discovery_mechanism_->parent();
|
555
|
+
size_t index = discovery_mechanism_->index();
|
556
|
+
if (!result.addresses.ok()) {
|
557
|
+
if (result.resolution_note.empty()) {
|
558
|
+
result.resolution_note = absl::StrCat(
|
559
|
+
"DNS resolution failed for ", discovery_mechanism_->GetDnsHostname(),
|
560
|
+
" (", result.addresses.status().ToString(), ")");
|
561
|
+
}
|
562
|
+
lb_policy->OnError(index, result.resolution_note);
|
563
|
+
return;
|
564
|
+
}
|
565
|
+
// Convert resolver result to EDS update.
|
566
|
+
XdsEndpointResource update;
|
567
|
+
XdsEndpointResource::Priority::Locality locality;
|
503
568
|
locality.name = MakeRefCounted<XdsLocalityName>("", "", "");
|
504
569
|
locality.lb_weight = 1;
|
505
|
-
locality.endpoints = std::move(result.addresses);
|
506
|
-
|
570
|
+
locality.endpoints = std::move(*result.addresses);
|
571
|
+
XdsEndpointResource::Priority priority;
|
507
572
|
priority.localities.emplace(locality.name.get(), std::move(locality));
|
508
573
|
update.priorities.emplace_back(std::move(priority));
|
509
|
-
|
510
|
-
|
574
|
+
lb_policy->OnEndpointChanged(index, std::move(update),
|
575
|
+
std::move(result.resolution_note));
|
511
576
|
}
|
512
577
|
|
513
|
-
|
514
|
-
|
515
|
-
|
578
|
+
//
|
579
|
+
// XdsClusterResolverLb::DiscoveryMechanismEntry
|
580
|
+
//
|
581
|
+
|
582
|
+
const XdsClusterResolverLbConfig::DiscoveryMechanism&
|
583
|
+
XdsClusterResolverLb::DiscoveryMechanismEntry::config() const {
|
584
|
+
return discovery_mechanism->parent()
|
585
|
+
->config_->discovery_mechanisms()[discovery_mechanism->index()];
|
586
|
+
}
|
587
|
+
|
588
|
+
std::string XdsClusterResolverLb::DiscoveryMechanismEntry::GetChildPolicyName(
|
589
|
+
size_t priority) const {
|
590
|
+
return absl::StrCat("{cluster=", config().cluster_name,
|
591
|
+
", child_number=", priority_child_numbers[priority], "}");
|
516
592
|
}
|
517
593
|
|
518
594
|
//
|
@@ -520,23 +596,11 @@ void XdsClusterResolverLb::LogicalDNSDiscoveryMechanism::ResolverResultHandler::
|
|
520
596
|
//
|
521
597
|
|
522
598
|
XdsClusterResolverLb::XdsClusterResolverLb(RefCountedPtr<XdsClient> xds_client,
|
523
|
-
Args args
|
524
|
-
|
525
|
-
: LoadBalancingPolicy(std::move(args)),
|
526
|
-
xds_client_(std::move(xds_client)),
|
527
|
-
server_name_(std::move(server_name)),
|
528
|
-
is_xds_uri_(is_xds_uri) {
|
599
|
+
Args args)
|
600
|
+
: LoadBalancingPolicy(std::move(args)), xds_client_(std::move(xds_client)) {
|
529
601
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_cluster_resolver_trace)) {
|
530
|
-
gpr_log(GPR_INFO,
|
531
|
-
|
532
|
-
"server_name=%s, is_xds_uri=%d",
|
533
|
-
this, xds_client_.get(), server_name_.c_str(), is_xds_uri_);
|
534
|
-
}
|
535
|
-
// EDS-only flow.
|
536
|
-
if (!is_xds_uri_) {
|
537
|
-
// Couple polling.
|
538
|
-
grpc_pollset_set_add_pollset_set(xds_client_->interested_parties(),
|
539
|
-
interested_parties());
|
602
|
+
gpr_log(GPR_INFO, "[xds_cluster_resolver_lb %p] created -- xds_client=%p",
|
603
|
+
this, xds_client_.get());
|
540
604
|
}
|
541
605
|
}
|
542
606
|
|
@@ -556,15 +620,8 @@ void XdsClusterResolverLb::ShutdownLocked() {
|
|
556
620
|
shutting_down_ = true;
|
557
621
|
MaybeDestroyChildPolicyLocked();
|
558
622
|
discovery_mechanisms_.clear();
|
559
|
-
if (!is_xds_uri_) {
|
560
|
-
// Decouple polling.
|
561
|
-
grpc_pollset_set_del_pollset_set(xds_client_->interested_parties(),
|
562
|
-
interested_parties());
|
563
|
-
}
|
564
623
|
xds_client_.reset(DEBUG_LOCATION, "XdsClusterResolverLb");
|
565
|
-
|
566
|
-
grpc_channel_args_destroy(args_);
|
567
|
-
args_ = nullptr;
|
624
|
+
args_ = ChannelArgs();
|
568
625
|
}
|
569
626
|
|
570
627
|
void XdsClusterResolverLb::MaybeDestroyChildPolicyLocked() {
|
@@ -575,20 +632,19 @@ void XdsClusterResolverLb::MaybeDestroyChildPolicyLocked() {
|
|
575
632
|
}
|
576
633
|
}
|
577
634
|
|
578
|
-
|
635
|
+
absl::Status XdsClusterResolverLb::UpdateLocked(UpdateArgs args) {
|
579
636
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_cluster_resolver_trace)) {
|
580
637
|
gpr_log(GPR_INFO, "[xds_cluster_resolver_lb %p] Received update", this);
|
581
638
|
}
|
582
|
-
const bool is_initial_update = args_ ==
|
639
|
+
const bool is_initial_update = args_ == ChannelArgs();
|
583
640
|
// Update config.
|
584
641
|
auto old_config = std::move(config_);
|
585
642
|
config_ = std::move(args.config);
|
586
643
|
// Update args.
|
587
|
-
|
588
|
-
args_ = args.args;
|
589
|
-
args.args = nullptr;
|
644
|
+
args_ = std::move(args.args);
|
590
645
|
// Update child policy if needed.
|
591
|
-
|
646
|
+
absl::Status status;
|
647
|
+
if (child_policy_ != nullptr) status = UpdateChildPolicyLocked();
|
592
648
|
// Create endpoint watcher if needed.
|
593
649
|
if (is_initial_update) {
|
594
650
|
for (const auto& config : config_->discovery_mechanisms()) {
|
@@ -614,12 +670,10 @@ void XdsClusterResolverLb::UpdateLocked(UpdateArgs args) {
|
|
614
670
|
discovery_mechanism.discovery_mechanism->Start();
|
615
671
|
}
|
616
672
|
}
|
673
|
+
return status;
|
617
674
|
}
|
618
675
|
|
619
676
|
void XdsClusterResolverLb::ResetBackoffLocked() {
|
620
|
-
// When the XdsClient is instantiated in the resolver instead of in this
|
621
|
-
// LB policy, this is done via the resolver, so we don't need to do it here.
|
622
|
-
if (!is_xds_uri_ && xds_client_ != nullptr) xds_client_->ResetBackoff();
|
623
677
|
if (child_policy_ != nullptr) {
|
624
678
|
child_policy_->ResetBackoffLocked();
|
625
679
|
}
|
@@ -630,108 +684,46 @@ void XdsClusterResolverLb::ExitIdleLocked() {
|
|
630
684
|
}
|
631
685
|
|
632
686
|
void XdsClusterResolverLb::OnEndpointChanged(size_t index,
|
633
|
-
|
687
|
+
XdsEndpointResource update,
|
688
|
+
std::string resolution_note) {
|
634
689
|
if (shutting_down_) return;
|
635
690
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_cluster_resolver_trace)) {
|
636
691
|
gpr_log(GPR_INFO,
|
637
692
|
"[xds_cluster_resolver_lb %p] Received update from xds client"
|
638
|
-
" for discovery mechanism %" PRIuPTR "",
|
639
|
-
this, index);
|
693
|
+
" for discovery mechanism %" PRIuPTR " (resolution_note=\"%s\")",
|
694
|
+
this, index, resolution_note.c_str());
|
640
695
|
}
|
696
|
+
DiscoveryMechanismEntry& discovery_entry = discovery_mechanisms_[index];
|
641
697
|
// We need at least one priority for each discovery mechanism, just so that we
|
642
698
|
// have a child in which to create the xds_cluster_impl policy. This ensures
|
643
699
|
// that we properly handle the case of a discovery mechanism dropping 100% of
|
644
700
|
// calls, the OnError() case, and the OnResourceDoesNotExist() case.
|
645
701
|
if (update.priorities.empty()) update.priorities.emplace_back();
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
// If any discovery mechanism has not received its first update,
|
651
|
-
// wait until that happens before creating the child policy.
|
652
|
-
// TODO(roth): If this becomes problematic in the future (e.g., a
|
653
|
-
// secondary discovery mechanism delaying us from starting up at all),
|
654
|
-
// we can consider some sort of optimization whereby we can create the
|
655
|
-
// priority policy with only a subset of its children. But we need to
|
656
|
-
// make sure not to get into a situation where the priority policy
|
657
|
-
// will put the channel into TRANSIENT_FAILURE instead of CONNECTING
|
658
|
-
// while we're still waiting for the other discovery mechanism(s).
|
659
|
-
for (DiscoveryMechanismEntry& mechanism : discovery_mechanisms_) {
|
660
|
-
if (!mechanism.first_update_received) return;
|
661
|
-
}
|
662
|
-
// Construct new priority list.
|
663
|
-
XdsApi::EdsUpdate::PriorityList priority_list;
|
664
|
-
size_t priority_index = 0;
|
665
|
-
for (DiscoveryMechanismEntry& mechanism : discovery_mechanisms_) {
|
666
|
-
// If the mechanism has a pending update, use that.
|
667
|
-
// Otherwise, use the priorities that it previously contributed to the
|
668
|
-
// combined list.
|
669
|
-
if (mechanism.pending_priority_list.has_value()) {
|
670
|
-
priority_list.insert(priority_list.end(),
|
671
|
-
mechanism.pending_priority_list->begin(),
|
672
|
-
mechanism.pending_priority_list->end());
|
673
|
-
priority_index += mechanism.num_priorities;
|
674
|
-
mechanism.num_priorities = mechanism.pending_priority_list->size();
|
675
|
-
mechanism.pending_priority_list.reset();
|
676
|
-
} else {
|
677
|
-
priority_list.insert(
|
678
|
-
priority_list.end(), priority_list_.begin() + priority_index,
|
679
|
-
priority_list_.begin() + priority_index + mechanism.num_priorities);
|
680
|
-
priority_index += mechanism.num_priorities;
|
681
|
-
}
|
682
|
-
}
|
683
|
-
// Update child policy.
|
684
|
-
UpdatePriorityList(std::move(priority_list));
|
685
|
-
}
|
686
|
-
|
687
|
-
void XdsClusterResolverLb::OnError(size_t index, grpc_error_handle error) {
|
688
|
-
gpr_log(GPR_ERROR,
|
689
|
-
"[xds_cluster_resolver_lb %p] discovery mechanism %" PRIuPTR
|
690
|
-
" xds watcher reported error: %s",
|
691
|
-
this, index, grpc_error_std_string(error).c_str());
|
692
|
-
GRPC_ERROR_UNREF(error);
|
693
|
-
if (shutting_down_) return;
|
694
|
-
if (!discovery_mechanisms_[index].first_update_received) {
|
695
|
-
// Call OnEndpointChanged with an empty update just like
|
696
|
-
// OnResourceDoesNotExist.
|
697
|
-
OnEndpointChanged(index, XdsApi::EdsUpdate());
|
698
|
-
}
|
699
|
-
}
|
700
|
-
|
701
|
-
void XdsClusterResolverLb::OnResourceDoesNotExist(size_t index) {
|
702
|
-
gpr_log(GPR_ERROR,
|
703
|
-
"[xds_cluster_resolver_lb %p] discovery mechanism %" PRIuPTR
|
704
|
-
" resource does not exist",
|
705
|
-
this, index);
|
706
|
-
if (shutting_down_) return;
|
707
|
-
// Call OnEndpointChanged with an empty update.
|
708
|
-
OnEndpointChanged(index, XdsApi::EdsUpdate());
|
709
|
-
}
|
710
|
-
|
711
|
-
//
|
712
|
-
// child policy-related methods
|
713
|
-
//
|
714
|
-
|
715
|
-
void XdsClusterResolverLb::UpdatePriorityList(
|
716
|
-
XdsApi::EdsUpdate::PriorityList priority_list) {
|
717
|
-
// Build some maps from locality to child number and the reverse from
|
718
|
-
// the old data in priority_list_ and priority_child_numbers_.
|
702
|
+
// Update priority_child_numbers, reusing old child numbers in an
|
703
|
+
// intelligent way to avoid unnecessary churn.
|
704
|
+
// First, build some maps from locality to child number and the reverse
|
705
|
+
// from the old data in the entry's update and priority_child_numbers.
|
719
706
|
std::map<XdsLocalityName*, size_t /*child_number*/, XdsLocalityName::Less>
|
720
707
|
locality_child_map;
|
721
|
-
std::map<size_t, std::set<XdsLocalityName
|
722
|
-
|
723
|
-
|
724
|
-
const auto&
|
725
|
-
for (
|
726
|
-
|
727
|
-
|
728
|
-
|
708
|
+
std::map<size_t, std::set<XdsLocalityName*, XdsLocalityName::Less>>
|
709
|
+
child_locality_map;
|
710
|
+
if (discovery_entry.latest_update.has_value()) {
|
711
|
+
const auto& prev_priority_list = discovery_entry.latest_update->priorities;
|
712
|
+
for (size_t priority = 0; priority < prev_priority_list.size();
|
713
|
+
++priority) {
|
714
|
+
size_t child_number = discovery_entry.priority_child_numbers[priority];
|
715
|
+
const auto& localities = prev_priority_list[priority].localities;
|
716
|
+
for (const auto& p : localities) {
|
717
|
+
XdsLocalityName* locality_name = p.first;
|
718
|
+
locality_child_map[locality_name] = child_number;
|
719
|
+
child_locality_map[child_number].insert(locality_name);
|
720
|
+
}
|
729
721
|
}
|
730
722
|
}
|
731
723
|
// Construct new list of children.
|
732
724
|
std::vector<size_t> priority_child_numbers;
|
733
|
-
for (size_t priority = 0; priority <
|
734
|
-
const auto& localities =
|
725
|
+
for (size_t priority = 0; priority < update.priorities.size(); ++priority) {
|
726
|
+
const auto& localities = update.priorities[priority].localities;
|
735
727
|
absl::optional<size_t> child_number;
|
736
728
|
// If one of the localities in this priority already existed, reuse its
|
737
729
|
// child number.
|
@@ -759,10 +751,11 @@ void XdsClusterResolverLb::UpdatePriorityList(
|
|
759
751
|
}
|
760
752
|
// If we didn't find an existing child number, assign a new one.
|
761
753
|
if (!child_number.has_value()) {
|
762
|
-
for (child_number =
|
754
|
+
for (child_number = discovery_entry.next_available_child_number;
|
763
755
|
child_locality_map.find(*child_number) != child_locality_map.end();
|
764
756
|
++(*child_number)) {
|
765
757
|
}
|
758
|
+
discovery_entry.next_available_child_number = *child_number + 1;
|
766
759
|
// Add entry so we know that the child number is in use.
|
767
760
|
// (Don't need to add the list of localities, since we won't use them.)
|
768
761
|
child_locality_map[*child_number];
|
@@ -770,185 +763,187 @@ void XdsClusterResolverLb::UpdatePriorityList(
|
|
770
763
|
priority_child_numbers.push_back(*child_number);
|
771
764
|
}
|
772
765
|
// Save update.
|
773
|
-
|
774
|
-
|
766
|
+
discovery_entry.latest_update = std::move(update);
|
767
|
+
discovery_entry.resolution_note = std::move(resolution_note);
|
768
|
+
discovery_entry.priority_child_numbers = std::move(priority_child_numbers);
|
769
|
+
// If any discovery mechanism has not received its first update,
|
770
|
+
// wait until that happens before creating the child policy.
|
771
|
+
// TODO(roth): If this becomes problematic in the future (e.g., a
|
772
|
+
// secondary discovery mechanism delaying us from starting up at all),
|
773
|
+
// we can consider some sort of optimization whereby we can create the
|
774
|
+
// priority policy with only a subset of its children. But we need to
|
775
|
+
// make sure not to get into a situation where the priority policy
|
776
|
+
// will put the channel into TRANSIENT_FAILURE instead of CONNECTING
|
777
|
+
// while we're still waiting for the other discovery mechanism(s).
|
778
|
+
for (DiscoveryMechanismEntry& mechanism : discovery_mechanisms_) {
|
779
|
+
if (!mechanism.latest_update.has_value()) return;
|
780
|
+
}
|
775
781
|
// Update child policy.
|
776
|
-
|
782
|
+
// TODO(roth): If the child policy reports an error with the update,
|
783
|
+
// we need to propagate that error back to the resolver somehow.
|
784
|
+
(void)UpdateChildPolicyLocked();
|
777
785
|
}
|
778
786
|
|
787
|
+
void XdsClusterResolverLb::OnError(size_t index, std::string resolution_note) {
|
788
|
+
gpr_log(GPR_ERROR,
|
789
|
+
"[xds_cluster_resolver_lb %p] discovery mechanism %" PRIuPTR
|
790
|
+
" reported error: %s",
|
791
|
+
this, index, resolution_note.c_str());
|
792
|
+
if (shutting_down_) return;
|
793
|
+
if (!discovery_mechanisms_[index].latest_update.has_value()) {
|
794
|
+
// Call OnEndpointChanged() with an empty update just like
|
795
|
+
// OnResourceDoesNotExist().
|
796
|
+
OnEndpointChanged(index, XdsEndpointResource(), std::move(resolution_note));
|
797
|
+
}
|
798
|
+
}
|
799
|
+
|
800
|
+
void XdsClusterResolverLb::OnResourceDoesNotExist(size_t index,
|
801
|
+
std::string resolution_note) {
|
802
|
+
gpr_log(GPR_ERROR,
|
803
|
+
"[xds_cluster_resolver_lb %p] discovery mechanism %" PRIuPTR
|
804
|
+
" resource does not exist: %s",
|
805
|
+
this, index, resolution_note.c_str());
|
806
|
+
if (shutting_down_) return;
|
807
|
+
// Call OnEndpointChanged() with an empty update.
|
808
|
+
OnEndpointChanged(index, XdsEndpointResource(), std::move(resolution_note));
|
809
|
+
}
|
810
|
+
|
811
|
+
//
|
812
|
+
// child policy-related methods
|
813
|
+
//
|
814
|
+
|
779
815
|
ServerAddressList XdsClusterResolverLb::CreateChildPolicyAddressesLocked() {
|
780
816
|
ServerAddressList addresses;
|
781
|
-
for (
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
const
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
817
|
+
for (const auto& discovery_entry : discovery_mechanisms_) {
|
818
|
+
for (size_t priority = 0;
|
819
|
+
priority < discovery_entry.latest_update->priorities.size();
|
820
|
+
++priority) {
|
821
|
+
const auto& priority_entry =
|
822
|
+
discovery_entry.latest_update->priorities[priority];
|
823
|
+
std::string priority_child_name =
|
824
|
+
discovery_entry.GetChildPolicyName(priority);
|
825
|
+
for (const auto& p : priority_entry.localities) {
|
826
|
+
const auto& locality_name = p.first;
|
827
|
+
const auto& locality = p.second;
|
828
|
+
std::vector<std::string> hierarchical_path = {
|
829
|
+
priority_child_name, locality_name->AsHumanReadableString()};
|
830
|
+
for (const auto& endpoint : locality.endpoints) {
|
831
|
+
const ServerAddressWeightAttribute* weight_attribute = static_cast<
|
832
|
+
const ServerAddressWeightAttribute*>(endpoint.GetAttribute(
|
833
|
+
ServerAddressWeightAttribute::kServerAddressWeightAttributeKey));
|
834
|
+
uint32_t weight = locality.lb_weight;
|
835
|
+
if (weight_attribute != nullptr) {
|
836
|
+
weight = locality.lb_weight * weight_attribute->weight();
|
837
|
+
}
|
838
|
+
addresses.emplace_back(
|
839
|
+
endpoint
|
840
|
+
.WithAttribute(
|
841
|
+
kHierarchicalPathAttributeKey,
|
842
|
+
MakeHierarchicalPathAttribute(hierarchical_path))
|
843
|
+
.WithAttribute(kXdsLocalityNameAttributeKey,
|
844
|
+
std::make_unique<XdsLocalityAttribute>(
|
845
|
+
locality_name->Ref(), locality.lb_weight))
|
846
|
+
.WithAttribute(
|
847
|
+
ServerAddressWeightAttribute::
|
848
|
+
kServerAddressWeightAttributeKey,
|
849
|
+
std::make_unique<ServerAddressWeightAttribute>(weight)));
|
797
850
|
}
|
798
|
-
addresses.emplace_back(
|
799
|
-
endpoint
|
800
|
-
.WithAttribute(kHierarchicalPathAttributeKey,
|
801
|
-
MakeHierarchicalPathAttribute(hierarchical_path))
|
802
|
-
.WithAttribute(kXdsLocalityNameAttributeKey,
|
803
|
-
absl::make_unique<XdsLocalityAttribute>(
|
804
|
-
locality_name->Ref()))
|
805
|
-
.WithAttribute(
|
806
|
-
ServerAddressWeightAttribute::
|
807
|
-
kServerAddressWeightAttributeKey,
|
808
|
-
absl::make_unique<ServerAddressWeightAttribute>(weight)));
|
809
851
|
}
|
810
852
|
}
|
811
853
|
}
|
812
854
|
return addresses;
|
813
855
|
}
|
814
856
|
|
857
|
+
std::string XdsClusterResolverLb::CreateChildPolicyResolutionNoteLocked() {
|
858
|
+
std::vector<absl::string_view> resolution_notes;
|
859
|
+
for (const auto& discovery_entry : discovery_mechanisms_) {
|
860
|
+
if (!discovery_entry.resolution_note.empty()) {
|
861
|
+
resolution_notes.push_back(discovery_entry.resolution_note);
|
862
|
+
}
|
863
|
+
}
|
864
|
+
return absl::StrJoin(resolution_notes, "; ");
|
865
|
+
}
|
866
|
+
|
815
867
|
RefCountedPtr<LoadBalancingPolicy::Config>
|
816
868
|
XdsClusterResolverLb::CreateChildPolicyConfigLocked() {
|
817
869
|
Json::Object priority_children;
|
818
870
|
Json::Array priority_priorities;
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
.empty()) {
|
831
|
-
child_policy = discovery_mechanisms_[discovery_index]
|
832
|
-
.discovery_mechanism->override_child_policy();
|
833
|
-
} else {
|
834
|
-
const auto& xds_lb_policy = config_->xds_lb_policy().object_value();
|
835
|
-
if (xds_lb_policy.find("ROUND_ROBIN") != xds_lb_policy.end()) {
|
836
|
-
const auto& localities = priority_list_[priority].localities;
|
837
|
-
Json::Object weighted_targets;
|
838
|
-
for (const auto& p : localities) {
|
839
|
-
XdsLocalityName* locality_name = p.first;
|
840
|
-
const auto& locality = p.second;
|
841
|
-
// Construct JSON object containing locality name.
|
842
|
-
Json::Object locality_name_json;
|
843
|
-
if (!locality_name->region().empty()) {
|
844
|
-
locality_name_json["region"] = locality_name->region();
|
845
|
-
}
|
846
|
-
if (!locality_name->zone().empty()) {
|
847
|
-
locality_name_json["zone"] = locality_name->zone();
|
848
|
-
}
|
849
|
-
if (!locality_name->sub_zone().empty()) {
|
850
|
-
locality_name_json["sub_zone"] = locality_name->sub_zone();
|
851
|
-
}
|
852
|
-
// Add weighted target entry.
|
853
|
-
weighted_targets[locality_name->AsHumanReadableString()] =
|
854
|
-
Json::Object{
|
855
|
-
{"weight", locality.lb_weight},
|
856
|
-
{"childPolicy",
|
857
|
-
Json::Array{
|
858
|
-
Json::Object{
|
859
|
-
{"round_robin", Json::Object()},
|
860
|
-
},
|
861
|
-
}},
|
862
|
-
};
|
863
|
-
}
|
864
|
-
// Construct locality-picking policy.
|
865
|
-
// Start with field from our config and add the "targets" field.
|
866
|
-
child_policy = Json::Array{
|
867
|
-
Json::Object{
|
868
|
-
{"weighted_target_experimental",
|
869
|
-
Json::Object{
|
870
|
-
{"targets", Json::Object()},
|
871
|
-
}},
|
872
|
-
},
|
873
|
-
};
|
874
|
-
Json::Object& config =
|
875
|
-
*(*child_policy.mutable_array())[0].mutable_object();
|
876
|
-
auto it = config.begin();
|
877
|
-
GPR_ASSERT(it != config.end());
|
878
|
-
(*it->second.mutable_object())["targets"] = std::move(weighted_targets);
|
871
|
+
for (const auto& discovery_entry : discovery_mechanisms_) {
|
872
|
+
const auto& discovery_config = discovery_entry.config();
|
873
|
+
for (size_t priority = 0;
|
874
|
+
priority < discovery_entry.latest_update->priorities.size();
|
875
|
+
++priority) {
|
876
|
+
// Determine what xDS LB policy to use.
|
877
|
+
Json child_policy;
|
878
|
+
if (!discovery_entry.discovery_mechanism->override_child_policy()
|
879
|
+
.empty()) {
|
880
|
+
child_policy =
|
881
|
+
discovery_entry.discovery_mechanism->override_child_policy();
|
879
882
|
} else {
|
880
|
-
|
881
|
-
GPR_ASSERT(it != xds_lb_policy.end());
|
882
|
-
Json::Object ring_hash_experimental_policy = it->second.object_value();
|
883
|
-
child_policy = Json::Array{
|
884
|
-
Json::Object{
|
885
|
-
{"ring_hash_experimental", ring_hash_experimental_policy},
|
886
|
-
},
|
887
|
-
};
|
883
|
+
child_policy = config_->xds_lb_policy();
|
888
884
|
}
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
{"category", category.name},
|
897
|
-
{"requests_per_million", category.parts_per_million},
|
898
|
-
});
|
885
|
+
// Wrap the xDS LB policy in the xds_override_host policy.
|
886
|
+
Json::Object xds_override_host_lb_config = {
|
887
|
+
{"childPolicy", std::move(child_policy)},
|
888
|
+
};
|
889
|
+
if (!discovery_config.override_host_statuses.empty()) {
|
890
|
+
xds_override_host_lb_config["overrideHostStatus"] =
|
891
|
+
discovery_config.override_host_statuses;
|
899
892
|
}
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
893
|
+
Json::Array xds_override_host_config = {Json::Object{
|
894
|
+
{"xds_override_host_experimental",
|
895
|
+
std::move(xds_override_host_lb_config)},
|
896
|
+
}};
|
897
|
+
// Wrap it in the xds_cluster_impl policy.
|
898
|
+
Json::Array drop_categories;
|
899
|
+
if (discovery_entry.latest_update->drop_config != nullptr) {
|
900
|
+
for (const auto& category :
|
901
|
+
discovery_entry.latest_update->drop_config->drop_category_list()) {
|
902
|
+
drop_categories.push_back(Json::Object{
|
903
|
+
{"category", category.name},
|
904
|
+
{"requests_per_million", category.parts_per_million},
|
905
|
+
});
|
906
|
+
}
|
907
|
+
}
|
908
|
+
Json::Object xds_cluster_impl_config = {
|
909
|
+
{"clusterName", discovery_config.cluster_name},
|
910
|
+
{"childPolicy", std::move(xds_override_host_config)},
|
911
|
+
{"dropCategories", std::move(drop_categories)},
|
912
|
+
{"maxConcurrentRequests", discovery_config.max_concurrent_requests},
|
913
|
+
};
|
914
|
+
if (!discovery_config.eds_service_name.empty()) {
|
915
|
+
xds_cluster_impl_config["edsServiceName"] =
|
916
|
+
discovery_config.eds_service_name;
|
917
|
+
}
|
918
|
+
if (discovery_config.lrs_load_reporting_server.has_value()) {
|
919
|
+
xds_cluster_impl_config["lrsLoadReportingServer"] =
|
920
|
+
discovery_config.lrs_load_reporting_server->ToJson();
|
921
|
+
}
|
922
|
+
// Wrap it in the outlier_detection policy.
|
923
|
+
Json::Object outlier_detection_config;
|
924
|
+
if (discovery_entry.config().outlier_detection_lb_config.has_value()) {
|
925
|
+
outlier_detection_config =
|
926
|
+
discovery_entry.config().outlier_detection_lb_config.value();
|
927
|
+
}
|
928
|
+
outlier_detection_config["childPolicy"] = Json::Array{Json::Object{
|
929
|
+
{"xds_cluster_impl_experimental", std::move(xds_cluster_impl_config)},
|
930
|
+
}};
|
931
|
+
Json locality_picking_policy = Json::Array{Json::Object{
|
932
|
+
{"outlier_detection_experimental",
|
933
|
+
std::move(outlier_detection_config)},
|
934
|
+
}};
|
935
|
+
// Add priority entry, with the appropriate child name.
|
936
|
+
std::string child_name = discovery_entry.GetChildPolicyName(priority);
|
937
|
+
priority_priorities.emplace_back(child_name);
|
938
|
+
Json::Object child_config = {
|
939
|
+
{"config", std::move(locality_picking_policy)},
|
940
|
+
};
|
941
|
+
if (discovery_entry.discovery_mechanism->disable_reresolution()) {
|
942
|
+
child_config["ignore_reresolution_requests"] = true;
|
943
|
+
}
|
944
|
+
priority_children[child_name] = std::move(child_config);
|
944
945
|
}
|
945
946
|
}
|
946
|
-
// There should be matching number of priorities in discovery_mechanisms_ and
|
947
|
-
// in priority_list_; therefore at the end of looping through all the
|
948
|
-
// priorities, num_priorities_remaining should be down to 0, and index should
|
949
|
-
// be the last index in discovery_mechanisms_.
|
950
|
-
GPR_ASSERT(num_priorities_remaining_in_discovery == 0);
|
951
|
-
GPR_ASSERT(discovery_index == discovery_mechanisms_.size() - 1);
|
952
947
|
Json json = Json::Array{Json::Object{
|
953
948
|
{"priority_experimental",
|
954
949
|
Json::Object{
|
@@ -963,34 +958,35 @@ XdsClusterResolverLb::CreateChildPolicyConfigLocked() {
|
|
963
958
|
"[xds_cluster_resolver_lb %p] generated config for child policy: %s",
|
964
959
|
this, json_str.c_str());
|
965
960
|
}
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
if (
|
961
|
+
auto config =
|
962
|
+
CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig(
|
963
|
+
json);
|
964
|
+
if (!config.ok()) {
|
970
965
|
// This should never happen, but if it does, we basically have no
|
971
966
|
// way to fix it, so we put the channel in TRANSIENT_FAILURE.
|
972
967
|
gpr_log(GPR_ERROR,
|
973
968
|
"[xds_cluster_resolver_lb %p] error parsing generated child policy "
|
974
969
|
"config -- "
|
975
970
|
"will put channel in TRANSIENT_FAILURE: %s",
|
976
|
-
this,
|
971
|
+
this, config.status().ToString().c_str());
|
977
972
|
absl::Status status = absl::InternalError(
|
978
973
|
"xds_cluster_resolver LB policy: error parsing generated child policy "
|
979
974
|
"config");
|
980
975
|
channel_control_helper()->UpdateState(
|
981
976
|
GRPC_CHANNEL_TRANSIENT_FAILURE, status,
|
982
|
-
|
977
|
+
MakeRefCounted<TransientFailurePicker>(status));
|
983
978
|
return nullptr;
|
984
979
|
}
|
985
|
-
return config;
|
980
|
+
return std::move(*config);
|
986
981
|
}
|
987
982
|
|
988
|
-
|
989
|
-
if (shutting_down_) return;
|
983
|
+
absl::Status XdsClusterResolverLb::UpdateChildPolicyLocked() {
|
984
|
+
if (shutting_down_) return absl::OkStatus();
|
990
985
|
UpdateArgs update_args;
|
991
986
|
update_args.config = CreateChildPolicyConfigLocked();
|
992
|
-
if (update_args.config == nullptr) return;
|
987
|
+
if (update_args.config == nullptr) return absl::OkStatus();
|
993
988
|
update_args.addresses = CreateChildPolicyAddressesLocked();
|
989
|
+
update_args.resolution_note = CreateChildPolicyResolutionNoteLocked();
|
994
990
|
update_args.args = CreateChildPolicyArgsLocked(args_);
|
995
991
|
if (child_policy_ == nullptr) {
|
996
992
|
child_policy_ = CreateChildPolicyLocked(update_args.args);
|
@@ -999,30 +995,25 @@ void XdsClusterResolverLb::UpdateChildPolicyLocked() {
|
|
999
995
|
gpr_log(GPR_INFO, "[xds_cluster_resolver_lb %p] Updating child policy %p",
|
1000
996
|
this, child_policy_.get());
|
1001
997
|
}
|
1002
|
-
child_policy_->UpdateLocked(std::move(update_args));
|
998
|
+
return child_policy_->UpdateLocked(std::move(update_args));
|
1003
999
|
}
|
1004
1000
|
|
1005
|
-
|
1006
|
-
const
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
grpc_channel_arg_integer_create(
|
1011
|
-
const_cast<char*>(GRPC_ARG_INHIBIT_HEALTH_CHECKING), 1),
|
1012
|
-
};
|
1013
|
-
if (!is_xds_uri_) new_args.push_back(xds_client_->MakeChannelArg());
|
1014
|
-
return grpc_channel_args_copy_and_add(args, new_args.data(), new_args.size());
|
1001
|
+
ChannelArgs XdsClusterResolverLb::CreateChildPolicyArgsLocked(
|
1002
|
+
const ChannelArgs& args) {
|
1003
|
+
// Inhibit client-side health checking, since the balancer does this
|
1004
|
+
// for us.
|
1005
|
+
return args.Set(GRPC_ARG_INHIBIT_HEALTH_CHECKING, 1);
|
1015
1006
|
}
|
1016
1007
|
|
1017
1008
|
OrphanablePtr<LoadBalancingPolicy>
|
1018
|
-
XdsClusterResolverLb::CreateChildPolicyLocked(const
|
1009
|
+
XdsClusterResolverLb::CreateChildPolicyLocked(const ChannelArgs& args) {
|
1019
1010
|
LoadBalancingPolicy::Args lb_policy_args;
|
1020
1011
|
lb_policy_args.work_serializer = work_serializer();
|
1021
1012
|
lb_policy_args.args = args;
|
1022
1013
|
lb_policy_args.channel_control_helper =
|
1023
|
-
|
1014
|
+
std::make_unique<Helper>(Ref(DEBUG_LOCATION, "Helper"));
|
1024
1015
|
OrphanablePtr<LoadBalancingPolicy> lb_policy =
|
1025
|
-
|
1016
|
+
CoreConfiguration::Get().lb_policy_registry().CreateLoadBalancingPolicy(
|
1026
1017
|
"priority_experimental", std::move(lb_policy_args));
|
1027
1018
|
if (GPR_UNLIKELY(lb_policy == nullptr)) {
|
1028
1019
|
gpr_log(GPR_ERROR,
|
@@ -1046,234 +1037,139 @@ XdsClusterResolverLb::CreateChildPolicyLocked(const grpc_channel_args* args) {
|
|
1046
1037
|
// factory
|
1047
1038
|
//
|
1048
1039
|
|
1040
|
+
const JsonLoaderInterface*
|
1041
|
+
XdsClusterResolverLbConfig::DiscoveryMechanism::JsonLoader(const JsonArgs&) {
|
1042
|
+
static const auto* loader =
|
1043
|
+
JsonObjectLoader<DiscoveryMechanism>()
|
1044
|
+
// Note: Several fields requires custom processing,
|
1045
|
+
// so they are handled in JsonPostLoad() instead.
|
1046
|
+
.Field("clusterName", &DiscoveryMechanism::cluster_name)
|
1047
|
+
.OptionalField("lrsLoadReportingServer",
|
1048
|
+
&DiscoveryMechanism::lrs_load_reporting_server)
|
1049
|
+
.OptionalField("max_concurrent_requests",
|
1050
|
+
&DiscoveryMechanism::max_concurrent_requests)
|
1051
|
+
.OptionalField("outlierDetection",
|
1052
|
+
&DiscoveryMechanism::outlier_detection_lb_config)
|
1053
|
+
.OptionalField("overrideHostStatus",
|
1054
|
+
&DiscoveryMechanism::override_host_statuses)
|
1055
|
+
.Finish();
|
1056
|
+
return loader;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
void XdsClusterResolverLbConfig::DiscoveryMechanism::JsonPostLoad(
|
1060
|
+
const Json& json, const JsonArgs& args, ValidationErrors* errors) {
|
1061
|
+
// Parse "type".
|
1062
|
+
{
|
1063
|
+
auto type_field = LoadJsonObjectField<std::string>(json.object_value(),
|
1064
|
+
args, "type", errors);
|
1065
|
+
if (type_field.has_value()) {
|
1066
|
+
if (*type_field == "EDS") {
|
1067
|
+
type = DiscoveryMechanismType::EDS;
|
1068
|
+
} else if (*type_field == "LOGICAL_DNS") {
|
1069
|
+
type = DiscoveryMechanismType::LOGICAL_DNS;
|
1070
|
+
} else {
|
1071
|
+
ValidationErrors::ScopedField field(errors, ".type");
|
1072
|
+
errors->AddError(absl::StrCat("unknown type \"", *type_field, "\""));
|
1073
|
+
}
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
// Parse "edsServiceName" if type is EDS.
|
1077
|
+
if (type == DiscoveryMechanismType::EDS) {
|
1078
|
+
auto value = LoadJsonObjectField<std::string>(json.object_value(), args,
|
1079
|
+
"edsServiceName", errors,
|
1080
|
+
/*required=*/false);
|
1081
|
+
if (value.has_value()) eds_service_name = std::move(*value);
|
1082
|
+
}
|
1083
|
+
// Parse "dnsHostname" if type is LOGICAL_DNS.
|
1084
|
+
if (type == DiscoveryMechanismType::LOGICAL_DNS) {
|
1085
|
+
auto value = LoadJsonObjectField<std::string>(json.object_value(), args,
|
1086
|
+
"dnsHostname", errors);
|
1087
|
+
if (value.has_value()) dns_hostname = std::move(*value);
|
1088
|
+
}
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
const JsonLoaderInterface* XdsClusterResolverLbConfig::JsonLoader(
|
1092
|
+
const JsonArgs&) {
|
1093
|
+
static const auto* loader =
|
1094
|
+
JsonObjectLoader<XdsClusterResolverLbConfig>()
|
1095
|
+
// Note: The "xdsLbPolicy" field requires custom processing,
|
1096
|
+
// so it's handled in JsonPostLoad() instead.
|
1097
|
+
.Field("discoveryMechanisms",
|
1098
|
+
&XdsClusterResolverLbConfig::discovery_mechanisms_)
|
1099
|
+
.Finish();
|
1100
|
+
return loader;
|
1101
|
+
}
|
1102
|
+
|
1103
|
+
void XdsClusterResolverLbConfig::JsonPostLoad(const Json& json, const JsonArgs&,
|
1104
|
+
ValidationErrors* errors) {
|
1105
|
+
// Validate discoveryMechanisms.
|
1106
|
+
{
|
1107
|
+
ValidationErrors::ScopedField field(errors, ".discoveryMechanisms");
|
1108
|
+
if (!errors->FieldHasErrors() && discovery_mechanisms_.empty()) {
|
1109
|
+
errors->AddError("must be non-empty");
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
// Parse "xdsLbPolicy".
|
1113
|
+
{
|
1114
|
+
ValidationErrors::ScopedField field(errors, ".xdsLbPolicy");
|
1115
|
+
auto it = json.object_value().find("xdsLbPolicy");
|
1116
|
+
if (it == json.object_value().end()) {
|
1117
|
+
errors->AddError("field not present");
|
1118
|
+
} else {
|
1119
|
+
auto lb_config = CoreConfiguration::Get()
|
1120
|
+
.lb_policy_registry()
|
1121
|
+
.ParseLoadBalancingConfig(it->second);
|
1122
|
+
if (!lb_config.ok()) errors->AddError(lb_config.status().message());
|
1123
|
+
xds_lb_policy_ = it->second;
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
}
|
1127
|
+
|
1049
1128
|
class XdsClusterResolverLbFactory : public LoadBalancingPolicyFactory {
|
1050
1129
|
public:
|
1051
1130
|
OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
|
1052
1131
|
LoadBalancingPolicy::Args args) const override {
|
1053
|
-
|
1054
|
-
|
1055
|
-
grpc_channel_args_find_string(args.args, GRPC_ARG_SERVER_URI);
|
1056
|
-
GPR_ASSERT(server_uri != nullptr);
|
1057
|
-
absl::StatusOr<URI> uri = URI::Parse(server_uri);
|
1058
|
-
GPR_ASSERT(uri.ok() && !uri->path().empty());
|
1059
|
-
absl::string_view server_name = absl::StripPrefix(uri->path(), "/");
|
1060
|
-
// Determine if it's an xds URI.
|
1061
|
-
bool is_xds_uri = uri->scheme() == "xds" || uri->scheme() == "google-c2p";
|
1062
|
-
// Get XdsClient.
|
1063
|
-
RefCountedPtr<XdsClient> xds_client =
|
1064
|
-
XdsClient::GetFromChannelArgs(*args.args);
|
1132
|
+
auto xds_client = args.args.GetObjectRef<GrpcXdsClient>(
|
1133
|
+
DEBUG_LOCATION, "XdsClusterResolverLbFactory");
|
1065
1134
|
if (xds_client == nullptr) {
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
gpr_log(GPR_ERROR,
|
1071
|
-
"cannot get or create XdsClient to instantiate "
|
1072
|
-
"xds_cluster_resolver LB policy: %s",
|
1073
|
-
grpc_error_std_string(error).c_str());
|
1074
|
-
GRPC_ERROR_UNREF(error);
|
1075
|
-
return nullptr;
|
1076
|
-
}
|
1077
|
-
} else {
|
1078
|
-
gpr_log(GPR_ERROR,
|
1079
|
-
"XdsClient not present in channel args -- cannot instantiate "
|
1080
|
-
"xds_cluster_resolver LB policy");
|
1081
|
-
return nullptr;
|
1082
|
-
}
|
1135
|
+
gpr_log(GPR_ERROR,
|
1136
|
+
"XdsClient not present in channel args -- cannot instantiate "
|
1137
|
+
"xds_cluster_resolver LB policy");
|
1138
|
+
return nullptr;
|
1083
1139
|
}
|
1084
|
-
return MakeOrphanable<XdsClusterResolverChildHandler>(
|
1085
|
-
|
1140
|
+
return MakeOrphanable<XdsClusterResolverChildHandler>(std::move(xds_client),
|
1141
|
+
std::move(args));
|
1086
1142
|
}
|
1087
1143
|
|
1088
|
-
|
1144
|
+
absl::string_view name() const override { return kXdsClusterResolver; }
|
1089
1145
|
|
1090
|
-
RefCountedPtr<LoadBalancingPolicy::Config
|
1091
|
-
|
1092
|
-
GPR_DEBUG_ASSERT(error != nullptr && *error == GRPC_ERROR_NONE);
|
1146
|
+
absl::StatusOr<RefCountedPtr<LoadBalancingPolicy::Config>>
|
1147
|
+
ParseLoadBalancingConfig(const Json& json) const override {
|
1093
1148
|
if (json.type() == Json::Type::JSON_NULL) {
|
1094
1149
|
// xds_cluster_resolver was mentioned as a policy in the deprecated
|
1095
1150
|
// loadBalancingPolicy field or in the client API.
|
1096
|
-
|
1151
|
+
return absl::InvalidArgumentError(
|
1097
1152
|
"field:loadBalancingPolicy error:xds_cluster_resolver policy "
|
1098
1153
|
"requires configuration. "
|
1099
1154
|
"Please use loadBalancingConfig field of service config instead.");
|
1100
|
-
return nullptr;
|
1101
|
-
}
|
1102
|
-
std::vector<grpc_error_handle> error_list;
|
1103
|
-
std::vector<XdsClusterResolverLbConfig::DiscoveryMechanism>
|
1104
|
-
discovery_mechanisms;
|
1105
|
-
auto it = json.object_value().find("discoveryMechanisms");
|
1106
|
-
if (it == json.object_value().end()) {
|
1107
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1108
|
-
"field:discoveryMechanisms error:required field missing"));
|
1109
|
-
} else if (it->second.type() != Json::Type::ARRAY) {
|
1110
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1111
|
-
"field:discoveryMechanisms error:type should be array"));
|
1112
|
-
} else {
|
1113
|
-
const Json::Array& array = it->second.array_value();
|
1114
|
-
for (size_t i = 0; i < array.size(); ++i) {
|
1115
|
-
XdsClusterResolverLbConfig::DiscoveryMechanism discovery_mechanism;
|
1116
|
-
std::vector<grpc_error_handle> discovery_mechanism_errors =
|
1117
|
-
ParseDiscoveryMechanism(array[i], &discovery_mechanism);
|
1118
|
-
if (!discovery_mechanism_errors.empty()) {
|
1119
|
-
grpc_error_handle error = GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
1120
|
-
absl::StrCat("field:discovery_mechanism element: ", i, " error"));
|
1121
|
-
for (const grpc_error_handle& discovery_mechanism_error :
|
1122
|
-
discovery_mechanism_errors) {
|
1123
|
-
error = grpc_error_add_child(error, discovery_mechanism_error);
|
1124
|
-
}
|
1125
|
-
error_list.push_back(error);
|
1126
|
-
}
|
1127
|
-
discovery_mechanisms.emplace_back(std::move(discovery_mechanism));
|
1128
|
-
}
|
1129
|
-
}
|
1130
|
-
if (discovery_mechanisms.empty()) {
|
1131
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1132
|
-
"field:discovery_mechanism error:list is missing or empty"));
|
1133
|
-
}
|
1134
|
-
Json xds_lb_policy = Json::Object{
|
1135
|
-
{"ROUND_ROBIN", Json::Object()},
|
1136
|
-
};
|
1137
|
-
it = json.object_value().find("xdsLbPolicy");
|
1138
|
-
if (it != json.object_value().end()) {
|
1139
|
-
if (it->second.type() != Json::Type::ARRAY) {
|
1140
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1141
|
-
"field:xdsLbPolicy error:type should be array"));
|
1142
|
-
} else {
|
1143
|
-
const Json::Array& array = it->second.array_value();
|
1144
|
-
for (size_t i = 0; i < array.size(); ++i) {
|
1145
|
-
if (array[i].type() != Json::Type::OBJECT) {
|
1146
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1147
|
-
"field:xdsLbPolicy error:element should be of type object"));
|
1148
|
-
continue;
|
1149
|
-
}
|
1150
|
-
const Json::Object& policy = array[i].object_value();
|
1151
|
-
auto policy_it = policy.find("ROUND_ROBIN");
|
1152
|
-
if (policy_it != policy.end()) {
|
1153
|
-
if (policy_it->second.type() != Json::Type::OBJECT) {
|
1154
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1155
|
-
"field:ROUND_ROBIN error:type should be object"));
|
1156
|
-
}
|
1157
|
-
break;
|
1158
|
-
}
|
1159
|
-
policy_it = policy.find("RING_HASH");
|
1160
|
-
if (policy_it != policy.end()) {
|
1161
|
-
xds_lb_policy = array[i];
|
1162
|
-
size_t min_ring_size;
|
1163
|
-
size_t max_ring_size;
|
1164
|
-
ParseRingHashLbConfig(policy_it->second, &min_ring_size,
|
1165
|
-
&max_ring_size, &error_list);
|
1166
|
-
}
|
1167
|
-
}
|
1168
|
-
}
|
1169
|
-
}
|
1170
|
-
// Construct config.
|
1171
|
-
if (error_list.empty()) {
|
1172
|
-
return MakeRefCounted<XdsClusterResolverLbConfig>(
|
1173
|
-
std::move(discovery_mechanisms), std::move(xds_lb_policy));
|
1174
|
-
} else {
|
1175
|
-
*error = GRPC_ERROR_CREATE_FROM_VECTOR(
|
1176
|
-
"xds_cluster_resolver_experimental LB policy config", &error_list);
|
1177
|
-
return nullptr;
|
1178
1155
|
}
|
1156
|
+
return LoadRefCountedFromJson<XdsClusterResolverLbConfig>(
|
1157
|
+
json, JsonArgs(),
|
1158
|
+
"errors validating xds_cluster_resolver LB policy config");
|
1179
1159
|
}
|
1180
1160
|
|
1181
1161
|
private:
|
1182
|
-
static std::vector<grpc_error_handle> ParseDiscoveryMechanism(
|
1183
|
-
const Json& json,
|
1184
|
-
XdsClusterResolverLbConfig::DiscoveryMechanism* discovery_mechanism) {
|
1185
|
-
std::vector<grpc_error_handle> error_list;
|
1186
|
-
if (json.type() != Json::Type::OBJECT) {
|
1187
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1188
|
-
"value should be of type object"));
|
1189
|
-
return error_list;
|
1190
|
-
}
|
1191
|
-
// Cluster name.
|
1192
|
-
auto it = json.object_value().find("clusterName");
|
1193
|
-
if (it == json.object_value().end()) {
|
1194
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1195
|
-
"field:clusterName error:required field missing"));
|
1196
|
-
} else if (it->second.type() != Json::Type::STRING) {
|
1197
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1198
|
-
"field:clusterName error:type should be string"));
|
1199
|
-
} else {
|
1200
|
-
discovery_mechanism->cluster_name = it->second.string_value();
|
1201
|
-
}
|
1202
|
-
// LRS load reporting server name.
|
1203
|
-
it = json.object_value().find("lrsLoadReportingServerName");
|
1204
|
-
if (it != json.object_value().end()) {
|
1205
|
-
if (it->second.type() != Json::Type::STRING) {
|
1206
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1207
|
-
"field:lrsLoadReportingServerName error:type should be string"));
|
1208
|
-
} else {
|
1209
|
-
discovery_mechanism->lrs_load_reporting_server_name.emplace(
|
1210
|
-
it->second.string_value());
|
1211
|
-
}
|
1212
|
-
}
|
1213
|
-
// Max concurrent requests.
|
1214
|
-
discovery_mechanism->max_concurrent_requests = 1024;
|
1215
|
-
it = json.object_value().find("max_concurrent_requests");
|
1216
|
-
if (it != json.object_value().end()) {
|
1217
|
-
if (it->second.type() != Json::Type::NUMBER) {
|
1218
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1219
|
-
"field:max_concurrent_requests error:must be of type number"));
|
1220
|
-
} else {
|
1221
|
-
discovery_mechanism->max_concurrent_requests =
|
1222
|
-
gpr_parse_nonnegative_int(it->second.string_value().c_str());
|
1223
|
-
}
|
1224
|
-
}
|
1225
|
-
// Discovery Mechanism type
|
1226
|
-
it = json.object_value().find("type");
|
1227
|
-
if (it == json.object_value().end()) {
|
1228
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1229
|
-
"field:type error:required field missing"));
|
1230
|
-
} else if (it->second.type() != Json::Type::STRING) {
|
1231
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1232
|
-
"field:type error:type should be string"));
|
1233
|
-
} else {
|
1234
|
-
if (it->second.string_value() == "EDS") {
|
1235
|
-
discovery_mechanism->type = XdsClusterResolverLbConfig::
|
1236
|
-
DiscoveryMechanism::DiscoveryMechanismType::EDS;
|
1237
|
-
it = json.object_value().find("edsServiceName");
|
1238
|
-
if (it != json.object_value().end()) {
|
1239
|
-
if (it->second.type() != Json::Type::STRING) {
|
1240
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1241
|
-
"field:edsServiceName error:type should be string"));
|
1242
|
-
} else {
|
1243
|
-
discovery_mechanism->eds_service_name = it->second.string_value();
|
1244
|
-
}
|
1245
|
-
}
|
1246
|
-
} else if (it->second.string_value() == "LOGICAL_DNS") {
|
1247
|
-
discovery_mechanism->type = XdsClusterResolverLbConfig::
|
1248
|
-
DiscoveryMechanism::DiscoveryMechanismType::LOGICAL_DNS;
|
1249
|
-
it = json.object_value().find("dnsHostname");
|
1250
|
-
if (it == json.object_value().end()) {
|
1251
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1252
|
-
"field:dnsHostname error:required field missing"));
|
1253
|
-
} else if (it->second.type() != Json::Type::STRING) {
|
1254
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1255
|
-
"field:dnsHostname error:type should be string"));
|
1256
|
-
} else {
|
1257
|
-
discovery_mechanism->dns_hostname = it->second.string_value();
|
1258
|
-
}
|
1259
|
-
} else {
|
1260
|
-
error_list.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1261
|
-
"field:type error:invalid type"));
|
1262
|
-
}
|
1263
|
-
}
|
1264
|
-
return error_list;
|
1265
|
-
}
|
1266
|
-
|
1267
1162
|
class XdsClusterResolverChildHandler : public ChildPolicyHandler {
|
1268
1163
|
public:
|
1269
1164
|
XdsClusterResolverChildHandler(RefCountedPtr<XdsClient> xds_client,
|
1270
|
-
Args args
|
1271
|
-
bool is_xds_uri)
|
1165
|
+
Args args)
|
1272
1166
|
: ChildPolicyHandler(std::move(args),
|
1273
1167
|
&grpc_lb_xds_cluster_resolver_trace),
|
1274
|
-
xds_client_(std::move(xds_client))
|
1275
|
-
|
1276
|
-
|
1168
|
+
xds_client_(std::move(xds_client)) {}
|
1169
|
+
|
1170
|
+
~XdsClusterResolverChildHandler() override {
|
1171
|
+
xds_client_.reset(DEBUG_LOCATION, "XdsClusterResolverChildHandler");
|
1172
|
+
}
|
1277
1173
|
|
1278
1174
|
bool ConfigChangeRequiresNewPolicyInstance(
|
1279
1175
|
LoadBalancingPolicy::Config* old_config,
|
@@ -1284,35 +1180,50 @@ class XdsClusterResolverLbFactory : public LoadBalancingPolicyFactory {
|
|
1284
1180
|
static_cast<XdsClusterResolverLbConfig*>(old_config);
|
1285
1181
|
XdsClusterResolverLbConfig* new_xds_cluster_resolver_config =
|
1286
1182
|
static_cast<XdsClusterResolverLbConfig*>(new_config);
|
1287
|
-
|
1288
|
-
|
1183
|
+
if (old_xds_cluster_resolver_config->discovery_mechanisms().size() !=
|
1184
|
+
new_xds_cluster_resolver_config->discovery_mechanisms().size()) {
|
1185
|
+
return true;
|
1186
|
+
}
|
1187
|
+
for (size_t i = 0;
|
1188
|
+
i < old_xds_cluster_resolver_config->discovery_mechanisms().size();
|
1189
|
+
++i) {
|
1190
|
+
auto& old_discovery_mechanism =
|
1191
|
+
old_xds_cluster_resolver_config->discovery_mechanisms()[i];
|
1192
|
+
auto& new_discovery_mechanism =
|
1193
|
+
new_xds_cluster_resolver_config->discovery_mechanisms()[i];
|
1194
|
+
if (old_discovery_mechanism.type != new_discovery_mechanism.type ||
|
1195
|
+
old_discovery_mechanism.cluster_name !=
|
1196
|
+
new_discovery_mechanism.cluster_name ||
|
1197
|
+
old_discovery_mechanism.eds_service_name !=
|
1198
|
+
new_discovery_mechanism.eds_service_name ||
|
1199
|
+
old_discovery_mechanism.dns_hostname !=
|
1200
|
+
new_discovery_mechanism.dns_hostname ||
|
1201
|
+
!(old_discovery_mechanism.lrs_load_reporting_server ==
|
1202
|
+
new_discovery_mechanism.lrs_load_reporting_server)) {
|
1203
|
+
return true;
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
return false;
|
1289
1207
|
}
|
1290
1208
|
|
1291
1209
|
OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1210
|
+
absl::string_view /*name*/,
|
1211
|
+
LoadBalancingPolicy::Args args) const override {
|
1212
|
+
return MakeOrphanable<XdsClusterResolverLb>(
|
1213
|
+
xds_client_->Ref(DEBUG_LOCATION, "XdsClusterResolverLb"),
|
1214
|
+
std::move(args));
|
1295
1215
|
}
|
1296
1216
|
|
1297
1217
|
private:
|
1298
1218
|
RefCountedPtr<XdsClient> xds_client_;
|
1299
|
-
std::string server_name_;
|
1300
|
-
bool is_xds_uri_;
|
1301
1219
|
};
|
1302
1220
|
};
|
1303
1221
|
|
1304
1222
|
} // namespace
|
1305
1223
|
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
// Plugin registration
|
1310
|
-
//
|
1311
|
-
|
1312
|
-
void grpc_lb_policy_xds_cluster_resolver_init() {
|
1313
|
-
grpc_core::LoadBalancingPolicyRegistry::Builder::
|
1314
|
-
RegisterLoadBalancingPolicyFactory(
|
1315
|
-
absl::make_unique<grpc_core::XdsClusterResolverLbFactory>());
|
1224
|
+
void RegisterXdsClusterResolverLbPolicy(CoreConfiguration::Builder* builder) {
|
1225
|
+
builder->lb_policy_registry()->RegisterLoadBalancingPolicyFactory(
|
1226
|
+
std::make_unique<XdsClusterResolverLbFactory>());
|
1316
1227
|
}
|
1317
1228
|
|
1318
|
-
|
1229
|
+
} // namespace grpc_core
|