grpc 1.58.0.pre1 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +48 -33
- data/include/grpc/event_engine/event_engine.h +6 -10
- data/include/grpc/impl/channel_arg_names.h +4 -0
- data/include/grpc/support/port_platform.h +74 -1
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +22 -9
- data/src/core/ext/filters/client_channel/client_channel.cc +422 -56
- data/src/core/ext/filters/client_channel/client_channel.h +52 -8
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +15 -1
- data/src/core/ext/filters/client_channel/dynamic_filters.h +2 -0
- data/src/core/ext/filters/client_channel/{http_proxy.cc → http_proxy_mapper.cc} +1 -1
- data/src/core/ext/filters/client_channel/{http_proxy.h → http_proxy_mapper.h} +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +188 -0
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +214 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +17 -4
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +41 -6
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +5 -3
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +32 -103
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -7
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +416 -139
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +16 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +434 -459
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +410 -26
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +14 -46
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +851 -57
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +16 -10
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +47 -32
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +55 -3
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +105 -175
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +14 -7
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +24 -6
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +36 -2
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +54 -44
- data/src/core/ext/filters/client_channel/subchannel.cc +33 -0
- data/src/core/ext/filters/client_channel/subchannel.h +9 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +11 -6
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +28 -22
- data/src/core/ext/transport/chttp2/transport/flow_control.h +27 -4
- data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +19 -10
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +3 -1
- data/src/core/ext/transport/chttp2/transport/internal.h +66 -47
- data/src/core/ext/transport/chttp2/transport/{frame.h → legacy_frame.h} +3 -3
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -2
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +10 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +4 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/writing.cc +2 -1
- data/src/core/ext/transport/inproc/inproc_transport.cc +9 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +75 -83
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +73 -81
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +294 -302
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +42 -44
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +141 -149
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +36 -38
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +157 -165
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +87 -89
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +13 -15
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +55 -63
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +111 -113
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +441 -449
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +88 -96
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +40 -42
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +180 -188
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +26 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +245 -253
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +119 -127
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +184 -192
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +225 -233
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +63 -65
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +246 -254
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +28 -36
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +48 -56
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +92 -100
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +38 -40
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +167 -175
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +34 -36
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +162 -170
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +10 -12
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +37 -45
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +22 -24
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +97 -105
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +24 -26
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +111 -119
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +43 -45
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +183 -191
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +20 -22
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +253 -255
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +1108 -1116
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +150 -158
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +53 -61
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +21 -23
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +81 -89
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +52 -60
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +14 -22
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +468 -476
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +25 -33
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +11 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +40 -48
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +27 -35
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +165 -173
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +9 -11
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +32 -40
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +39 -41
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +169 -177
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +55 -57
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +241 -249
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +98 -106
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +11 -19
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +34 -42
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +47 -55
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +12 -20
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +2 -4
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +1 -9
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +45 -47
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +190 -198
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +54 -56
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +210 -218
- data/src/core/ext/upb-generated/google/api/http.upb.c +15 -17
- data/src/core/ext/upb-generated/google/api/http.upb.h +60 -68
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +4 -6
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +15 -23
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +359 -204
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1340 -760
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +1 -3
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +1 -9
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +11 -13
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +43 -51
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +10 -12
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +28 -36
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +4 -6
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +15 -23
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +11 -13
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +35 -43
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +10 -12
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +28 -36
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +48 -50
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +190 -198
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +5 -7
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +15 -23
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +3 -5
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +7 -15
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +21 -23
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +80 -88
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +9 -11
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +29 -37
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +32 -34
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +147 -155
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/validate/validate.upb.c +201 -203
- data/src/core/ext/upb-generated/validate/validate.upb.h +924 -932
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +7 -15
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +16 -24
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +6 -8
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +20 -28
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +12 -20
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +35 -43
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +14 -22
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +16 -18
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +43 -51
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +5 -13
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +21 -29
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +1 -3
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +24 -32
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +24 -26
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +103 -111
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +61 -69
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +18 -26
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +8 -16
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +367 -290
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +10 -0
- data/src/core/ext/xds/xds_client.cc +6 -9
- data/src/core/ext/xds/xds_client.h +2 -2
- data/src/core/ext/xds/xds_cluster.cc +30 -42
- data/src/core/ext/xds/xds_cluster.h +0 -4
- data/src/core/ext/xds/xds_endpoint.cc +12 -19
- data/src/core/ext/xds/xds_endpoint.h +0 -1
- data/src/core/ext/xds/xds_http_filters.cc +1 -4
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +1 -4
- data/src/core/ext/xds/xds_listener.cc +14 -14
- data/src/core/ext/xds/xds_listener.h +13 -3
- data/src/core/ext/xds/xds_resource_type.h +1 -7
- data/src/core/ext/xds/xds_resource_type_impl.h +9 -11
- data/src/core/ext/xds/xds_route_config.cc +10 -11
- data/src/core/ext/xds/xds_route_config.h +1 -1
- data/src/core/ext/xds/xds_server_config_fetcher.cc +53 -28
- data/src/core/ext/xds/xds_transport_grpc.cc +11 -1
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +2 -4
- data/src/core/lib/channel/call_tracer.cc +7 -1
- data/src/core/lib/channel/call_tracer.h +4 -1
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +1 -1
- data/src/core/lib/config/config_vars.h +1 -1
- data/src/core/lib/config/core_configuration.cc +2 -1
- data/src/core/lib/config/core_configuration.h +5 -4
- data/src/core/lib/debug/stats_data.cc +146 -51
- data/src/core/lib/debug/stats_data.h +81 -20
- data/src/core/lib/event_engine/ares_resolver.cc +9 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +3 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +15 -3
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -0
- data/src/core/lib/event_engine/nameser.h +102 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.h +15 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +3 -15
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +10 -4
- data/src/core/lib/experiments/config.cc +9 -1
- data/src/core/lib/experiments/experiments.cc +409 -144
- data/src/core/lib/experiments/experiments.h +153 -39
- data/src/core/lib/gprpp/fork.h +1 -1
- data/src/core/lib/gprpp/manual_constructor.h +1 -2
- data/src/core/lib/gprpp/no_destruct.h +1 -1
- data/src/core/lib/gprpp/per_cpu.cc +2 -0
- data/src/core/lib/gprpp/per_cpu.h +36 -7
- data/src/core/lib/gprpp/ref_counted_ptr.h +63 -0
- data/src/core/lib/gprpp/work_serializer.cc +297 -25
- data/src/core/lib/gprpp/work_serializer.h +25 -9
- data/src/core/lib/iomgr/combiner.cc +54 -15
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -4
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +55 -19
- data/src/core/lib/iomgr/polling_entity.cc +10 -0
- data/src/core/lib/iomgr/polling_entity.h +2 -0
- data/src/core/lib/iomgr/port.h +14 -0
- data/src/core/lib/iomgr/tcp_posix.cc +17 -14
- data/src/core/lib/load_balancing/lb_policy.h +10 -9
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/detail/seq_state.h +418 -0
- data/src/core/lib/promise/latch.h +1 -0
- data/src/core/lib/promise/loop.h +8 -5
- data/src/core/lib/promise/pipe.h +24 -24
- data/src/core/lib/promise/poll.h +4 -6
- data/src/core/lib/resolver/server_address.h +1 -0
- data/src/core/lib/resource_quota/memory_quota.cc +58 -2
- data/src/core/lib/resource_quota/memory_quota.h +4 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +115 -9
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +86 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +0 -59
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -57
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -14
- data/src/core/lib/slice/slice.h +6 -0
- data/src/core/lib/slice/slice_buffer.cc +15 -0
- data/src/core/lib/slice/slice_buffer.h +16 -4
- data/src/core/lib/slice/slice_refcount.h +1 -1
- data/src/core/lib/surface/call.cc +92 -34
- data/src/core/lib/surface/call.h +4 -0
- data/src/core/lib/surface/channel.cc +7 -4
- data/src/core/lib/surface/channel_init.h +3 -2
- data/src/core/lib/surface/server.cc +45 -5
- data/src/core/lib/surface/server.h +18 -6
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.cc +3 -5
- data/src/core/lib/transport/metadata_batch.cc +6 -0
- data/src/core/lib/transport/metadata_batch.h +20 -1
- data/src/core/lib/transport/parsed_metadata.h +2 -4
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/transport.h +21 -11
- data/src/core/tsi/ssl_transport_security.cc +7 -0
- data/src/core/tsi/ssl_transport_security.h +4 -0
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_channel_args.c +6 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +4 -1
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/upb/upb/collections/array.c +6 -0
- data/third_party/upb/upb/collections/array.h +6 -0
- data/third_party/upb/upb/collections/map.c +7 -0
- data/third_party/upb/upb/collections/map.h +5 -0
- data/third_party/upb/upb/collections/map_sorter_internal.h +1 -1
- data/third_party/upb/upb/collections/message_value.h +8 -1
- data/third_party/upb/upb/generated_code_support.h +54 -0
- data/third_party/upb/upb/hash/common.c +5 -0
- data/third_party/upb/upb/hash/common.h +1 -0
- data/third_party/upb/upb/hash/str_table.h +1 -0
- data/third_party/upb/upb/message/accessors.c +25 -1
- data/third_party/upb/upb/message/accessors.h +46 -25
- data/third_party/upb/upb/message/accessors_internal.h +69 -3
- data/third_party/upb/upb/message/extension_internal.h +1 -1
- data/third_party/upb/upb/message/internal/map_entry.h +64 -0
- data/third_party/upb/upb/message/internal.h +2 -6
- data/third_party/upb/upb/message/message.c +0 -6
- data/third_party/upb/upb/message/message.h +1 -1
- data/third_party/upb/upb/message/tagged_ptr.h +89 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +150 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.h +63 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.c +122 -374
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.h +11 -50
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +46 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +81 -0
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +73 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor/internal}/encode.c +58 -32
- data/third_party/upb/upb/{mini_table/encode_internal.h → mini_descriptor/internal/encode.h} +3 -4
- data/third_party/upb/upb/{mini_table/encode_internal.hpp → mini_descriptor/internal/encode.hpp} +1 -1
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +50 -0
- data/third_party/upb/upb/{mini_table/common_internal.h → mini_descriptor/internal/wire_constants.h} +3 -23
- data/third_party/upb/upb/mini_descriptor/link.c +142 -0
- data/third_party/upb/upb/mini_descriptor/link.h +104 -0
- data/third_party/upb/upb/mini_table/{types.h → enum.h} +19 -9
- data/third_party/upb/upb/mini_table/extension.h +40 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +1 -1
- data/third_party/upb/upb/mini_table/extension_registry.h +2 -1
- data/third_party/upb/upb/mini_table/field.h +118 -0
- data/third_party/upb/upb/{json_decode.h → mini_table/file.h} +5 -6
- data/third_party/upb/upb/mini_table/{enum_internal.h → internal/enum.h} +7 -19
- data/third_party/upb/upb/mini_table/{extension_internal.h → internal/extension.h} +8 -8
- data/third_party/upb/upb/mini_table/{field_internal.h → internal/field.h} +10 -66
- data/third_party/upb/upb/mini_table/{file_internal.h → internal/file.h} +6 -4
- data/third_party/upb/upb/mini_table/internal/message.c +39 -0
- data/third_party/upb/upb/mini_table/{message_internal.h → internal/message.h} +14 -37
- data/third_party/upb/upb/mini_table/{sub_internal.h → internal/sub.h} +7 -6
- data/third_party/upb/upb/mini_table/{common.c → message.c} +2 -33
- data/third_party/upb/upb/mini_table/{common.h → message.h} +12 -77
- data/third_party/upb/upb/{json_encode.h → mini_table/sub.h} +5 -6
- data/third_party/upb/upb/reflection/def.hpp +16 -4
- data/third_party/upb/upb/reflection/def_pool_internal.h +1 -1
- data/third_party/upb/upb/reflection/desc_state_internal.h +1 -1
- data/third_party/upb/upb/reflection/enum_def.c +1 -1
- data/third_party/upb/upb/reflection/field_def.c +2 -1
- data/third_party/upb/upb/reflection/message.c +2 -2
- data/third_party/upb/upb/reflection/message_def.c +3 -1
- data/third_party/upb/upb/wire/decode.c +68 -29
- data/third_party/upb/upb/wire/decode.h +40 -0
- data/third_party/upb/upb/wire/encode.c +23 -13
- metadata +46 -29
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.cc +0 -256
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.h +0 -137
@@ -123,7 +123,8 @@ class CdsLb : public LoadBalancingPolicy {
|
|
123
123
|
ClusterWatcher(RefCountedPtr<CdsLb> parent, std::string name)
|
124
124
|
: parent_(std::move(parent)), name_(std::move(name)) {}
|
125
125
|
|
126
|
-
void OnResourceChanged(
|
126
|
+
void OnResourceChanged(
|
127
|
+
std::shared_ptr<const XdsClusterResource> cluster_data) override {
|
127
128
|
RefCountedPtr<ClusterWatcher> self = Ref();
|
128
129
|
parent_->work_serializer()->Run(
|
129
130
|
[self = std::move(self),
|
@@ -160,7 +161,7 @@ class CdsLb : public LoadBalancingPolicy {
|
|
160
161
|
// Not owned, so do not dereference.
|
161
162
|
ClusterWatcher* watcher = nullptr;
|
162
163
|
// Most recent update obtained from this watcher.
|
163
|
-
|
164
|
+
std::shared_ptr<const XdsClusterResource> update;
|
164
165
|
};
|
165
166
|
|
166
167
|
// Delegating helper to be passed to child policy.
|
@@ -174,7 +175,7 @@ class CdsLb : public LoadBalancingPolicy {
|
|
174
175
|
const std::string& name, int depth, Json::Array* discovery_mechanisms,
|
175
176
|
std::set<std::string>* clusters_added);
|
176
177
|
void OnClusterChanged(const std::string& name,
|
177
|
-
XdsClusterResource cluster_data);
|
178
|
+
std::shared_ptr<const XdsClusterResource> cluster_data);
|
178
179
|
void OnError(const std::string& name, absl::Status status);
|
179
180
|
void OnResourceDoesNotExist(const std::string& name);
|
180
181
|
|
@@ -328,7 +329,7 @@ absl::StatusOr<bool> CdsLb::GenerateDiscoveryMechanismForCluster(
|
|
328
329
|
return false;
|
329
330
|
}
|
330
331
|
// Don't have the update we need yet.
|
331
|
-
if (
|
332
|
+
if (state.update == nullptr) return false;
|
332
333
|
// For AGGREGATE clusters, recursively expand to child clusters.
|
333
334
|
auto* aggregate =
|
334
335
|
absl::get_if<XdsClusterResource::Aggregate>(&state.update->type);
|
@@ -422,13 +423,15 @@ absl::StatusOr<bool> CdsLb::GenerateDiscoveryMechanismForCluster(
|
|
422
423
|
return true;
|
423
424
|
}
|
424
425
|
|
425
|
-
void CdsLb::OnClusterChanged(
|
426
|
-
|
426
|
+
void CdsLb::OnClusterChanged(
|
427
|
+
const std::string& name,
|
428
|
+
std::shared_ptr<const XdsClusterResource> cluster_data) {
|
427
429
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_cds_lb_trace)) {
|
428
430
|
gpr_log(
|
429
431
|
GPR_INFO,
|
430
432
|
"[cdslb %p] received CDS update for cluster %s from xds client %p: %s",
|
431
|
-
this, name.c_str(), xds_client_.get(),
|
433
|
+
this, name.c_str(), xds_client_.get(),
|
434
|
+
cluster_data->ToString().c_str());
|
432
435
|
}
|
433
436
|
// Store the update in the map if we are still interested in watching this
|
434
437
|
// cluster (i.e., it is not cancelled already).
|
@@ -436,10 +439,9 @@ void CdsLb::OnClusterChanged(const std::string& name,
|
|
436
439
|
// that was scheduled before the deletion, so we can just ignore it.
|
437
440
|
auto it = watchers_.find(name);
|
438
441
|
if (it == watchers_.end()) return;
|
439
|
-
it->second.update = cluster_data;
|
442
|
+
it->second.update = std::move(cluster_data);
|
440
443
|
// Take care of integration with new certificate code.
|
441
|
-
absl::Status status =
|
442
|
-
UpdateXdsCertificateProvider(name, it->second.update.value());
|
444
|
+
absl::Status status = UpdateXdsCertificateProvider(name, *it->second.update);
|
443
445
|
if (!status.ok()) {
|
444
446
|
return OnError(name, status);
|
445
447
|
}
|
@@ -455,6 +457,10 @@ void CdsLb::OnClusterChanged(const std::string& name,
|
|
455
457
|
return OnError(name, result.status());
|
456
458
|
}
|
457
459
|
if (*result) {
|
460
|
+
if (discovery_mechanisms.empty()) {
|
461
|
+
return OnError(name, absl::FailedPreconditionError(
|
462
|
+
"aggregate cluster graph has no leaf clusters"));
|
463
|
+
}
|
458
464
|
// LB policy is configured by aggregate cluster, not by the individual
|
459
465
|
// underlying cluster that we may be processing an update for.
|
460
466
|
auto it = watchers_.find(config_->cluster());
|
@@ -54,6 +54,7 @@
|
|
54
54
|
#include "src/core/lib/config/core_configuration.h"
|
55
55
|
#include "src/core/lib/debug/trace.h"
|
56
56
|
#include "src/core/lib/gprpp/debug_location.h"
|
57
|
+
#include "src/core/lib/gprpp/no_destruct.h"
|
57
58
|
#include "src/core/lib/gprpp/orphanable.h"
|
58
59
|
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
59
60
|
#include "src/core/lib/gprpp/ref_counted_string.h"
|
@@ -212,7 +213,8 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
212
213
|
~EndpointWatcher() override {
|
213
214
|
discovery_mechanism_.reset(DEBUG_LOCATION, "EndpointWatcher");
|
214
215
|
}
|
215
|
-
void OnResourceChanged(
|
216
|
+
void OnResourceChanged(
|
217
|
+
std::shared_ptr<const XdsEndpointResource> update) override {
|
216
218
|
RefCountedPtr<EndpointWatcher> self = Ref();
|
217
219
|
discovery_mechanism_->parent()->work_serializer()->Run(
|
218
220
|
[self = std::move(self), update = std::move(update)]() mutable {
|
@@ -241,15 +243,16 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
241
243
|
// Code accessing protected methods of `DiscoveryMechanism` need to be
|
242
244
|
// in methods of this class rather than in lambdas to work around an MSVC
|
243
245
|
// bug.
|
244
|
-
void OnResourceChangedHelper(
|
246
|
+
void OnResourceChangedHelper(
|
247
|
+
std::shared_ptr<const XdsEndpointResource> update) {
|
245
248
|
std::string resolution_note;
|
246
|
-
if (update
|
249
|
+
if (update->priorities.empty()) {
|
247
250
|
resolution_note = absl::StrCat(
|
248
251
|
"EDS resource ", discovery_mechanism_->GetEdsResourceName(),
|
249
252
|
" contains no localities");
|
250
253
|
} else {
|
251
254
|
std::set<std::string> empty_localities;
|
252
|
-
for (const auto& priority : update
|
255
|
+
for (const auto& priority : update->priorities) {
|
253
256
|
for (const auto& p : priority.localities) {
|
254
257
|
if (p.second.endpoints.empty()) {
|
255
258
|
empty_localities.insert(p.first->AsHumanReadableString());
|
@@ -345,7 +348,7 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
345
348
|
struct DiscoveryMechanismEntry {
|
346
349
|
OrphanablePtr<DiscoveryMechanism> discovery_mechanism;
|
347
350
|
// Most recent update reported by the discovery mechanism.
|
348
|
-
|
351
|
+
std::shared_ptr<const XdsEndpointResource> latest_update;
|
349
352
|
// Last resolution note reported by the discovery mechanism, if any.
|
350
353
|
std::string resolution_note;
|
351
354
|
// State used to retain child policy names for priority policy.
|
@@ -376,7 +379,8 @@ class XdsClusterResolverLb : public LoadBalancingPolicy {
|
|
376
379
|
|
377
380
|
void ShutdownLocked() override;
|
378
381
|
|
379
|
-
void OnEndpointChanged(size_t index,
|
382
|
+
void OnEndpointChanged(size_t index,
|
383
|
+
std::shared_ptr<const XdsEndpointResource> update,
|
380
384
|
std::string resolution_note);
|
381
385
|
void OnError(size_t index, std::string resolution_note);
|
382
386
|
void OnResourceDoesNotExist(size_t index, std::string resolution_note);
|
@@ -503,14 +507,14 @@ void XdsClusterResolverLb::LogicalDNSDiscoveryMechanism::ResolverResultHandler::
|
|
503
507
|
return;
|
504
508
|
}
|
505
509
|
// Convert resolver result to EDS update.
|
506
|
-
|
510
|
+
auto update = std::make_shared<XdsEndpointResource>();
|
507
511
|
XdsEndpointResource::Priority::Locality locality;
|
508
512
|
locality.name = MakeRefCounted<XdsLocalityName>("", "", "");
|
509
513
|
locality.lb_weight = 1;
|
510
514
|
locality.endpoints = std::move(*result.addresses);
|
511
515
|
XdsEndpointResource::Priority priority;
|
512
516
|
priority.localities.emplace(locality.name.get(), std::move(locality));
|
513
|
-
update
|
517
|
+
update->priorities.emplace_back(std::move(priority));
|
514
518
|
lb_policy->OnEndpointChanged(index, std::move(update),
|
515
519
|
std::move(result.resolution_note));
|
516
520
|
}
|
@@ -623,9 +627,21 @@ void XdsClusterResolverLb::ExitIdleLocked() {
|
|
623
627
|
if (child_policy_ != nullptr) child_policy_->ExitIdleLocked();
|
624
628
|
}
|
625
629
|
|
626
|
-
|
627
|
-
|
628
|
-
|
630
|
+
// We need at least one priority for each discovery mechanism, just so that we
|
631
|
+
// have a child in which to create the xds_cluster_impl policy. This ensures
|
632
|
+
// that we properly handle the case of a discovery mechanism dropping 100% of
|
633
|
+
// calls, the OnError() case, and the OnResourceDoesNotExist() case.
|
634
|
+
const XdsEndpointResource::PriorityList& GetUpdatePriorityList(
|
635
|
+
const XdsEndpointResource& update) {
|
636
|
+
static const NoDestruct<XdsEndpointResource::PriorityList>
|
637
|
+
kPriorityListWithEmptyPriority(1);
|
638
|
+
if (update.priorities.empty()) return *kPriorityListWithEmptyPriority;
|
639
|
+
return update.priorities;
|
640
|
+
}
|
641
|
+
|
642
|
+
void XdsClusterResolverLb::OnEndpointChanged(
|
643
|
+
size_t index, std::shared_ptr<const XdsEndpointResource> update,
|
644
|
+
std::string resolution_note) {
|
629
645
|
if (shutting_down_) return;
|
630
646
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_cluster_resolver_trace)) {
|
631
647
|
gpr_log(GPR_INFO,
|
@@ -634,11 +650,8 @@ void XdsClusterResolverLb::OnEndpointChanged(size_t index,
|
|
634
650
|
this, index, resolution_note.c_str());
|
635
651
|
}
|
636
652
|
DiscoveryMechanismEntry& discovery_entry = discovery_mechanisms_[index];
|
637
|
-
|
638
|
-
|
639
|
-
// that we properly handle the case of a discovery mechanism dropping 100% of
|
640
|
-
// calls, the OnError() case, and the OnResourceDoesNotExist() case.
|
641
|
-
if (update.priorities.empty()) update.priorities.emplace_back();
|
653
|
+
const XdsEndpointResource::PriorityList& priority_list =
|
654
|
+
GetUpdatePriorityList(*update);
|
642
655
|
// Update priority_child_numbers, reusing old child numbers in an
|
643
656
|
// intelligent way to avoid unnecessary churn.
|
644
657
|
// First, build some maps from locality to child number and the reverse
|
@@ -647,8 +660,9 @@ void XdsClusterResolverLb::OnEndpointChanged(size_t index,
|
|
647
660
|
locality_child_map;
|
648
661
|
std::map<size_t, std::set<XdsLocalityName*, XdsLocalityName::Less>>
|
649
662
|
child_locality_map;
|
650
|
-
if (discovery_entry.latest_update
|
651
|
-
const auto& prev_priority_list =
|
663
|
+
if (discovery_entry.latest_update != nullptr) {
|
664
|
+
const auto& prev_priority_list =
|
665
|
+
GetUpdatePriorityList(*discovery_entry.latest_update);
|
652
666
|
for (size_t priority = 0; priority < prev_priority_list.size();
|
653
667
|
++priority) {
|
654
668
|
size_t child_number = discovery_entry.priority_child_numbers[priority];
|
@@ -662,8 +676,8 @@ void XdsClusterResolverLb::OnEndpointChanged(size_t index,
|
|
662
676
|
}
|
663
677
|
// Construct new list of children.
|
664
678
|
std::vector<size_t> priority_child_numbers;
|
665
|
-
for (size_t priority = 0; priority <
|
666
|
-
const auto& localities =
|
679
|
+
for (size_t priority = 0; priority < priority_list.size(); ++priority) {
|
680
|
+
const auto& localities = priority_list[priority].localities;
|
667
681
|
absl::optional<size_t> child_number;
|
668
682
|
// If one of the localities in this priority already existed, reuse its
|
669
683
|
// child number.
|
@@ -716,7 +730,7 @@ void XdsClusterResolverLb::OnEndpointChanged(size_t index,
|
|
716
730
|
// will put the channel into TRANSIENT_FAILURE instead of CONNECTING
|
717
731
|
// while we're still waiting for the other discovery mechanism(s).
|
718
732
|
for (DiscoveryMechanismEntry& mechanism : discovery_mechanisms_) {
|
719
|
-
if (
|
733
|
+
if (mechanism.latest_update == nullptr) return;
|
720
734
|
}
|
721
735
|
// Update child policy.
|
722
736
|
// TODO(roth): If the child policy reports an error with the update,
|
@@ -730,10 +744,11 @@ void XdsClusterResolverLb::OnError(size_t index, std::string resolution_note) {
|
|
730
744
|
" reported error: %s",
|
731
745
|
this, index, resolution_note.c_str());
|
732
746
|
if (shutting_down_) return;
|
733
|
-
if (
|
747
|
+
if (discovery_mechanisms_[index].latest_update == nullptr) {
|
734
748
|
// Call OnEndpointChanged() with an empty update just like
|
735
749
|
// OnResourceDoesNotExist().
|
736
|
-
OnEndpointChanged(index, XdsEndpointResource(),
|
750
|
+
OnEndpointChanged(index, std::make_shared<XdsEndpointResource>(),
|
751
|
+
std::move(resolution_note));
|
737
752
|
}
|
738
753
|
}
|
739
754
|
|
@@ -745,7 +760,8 @@ void XdsClusterResolverLb::OnResourceDoesNotExist(size_t index,
|
|
745
760
|
this, index, resolution_note.c_str());
|
746
761
|
if (shutting_down_) return;
|
747
762
|
// Call OnEndpointChanged() with an empty update.
|
748
|
-
OnEndpointChanged(index, XdsEndpointResource(),
|
763
|
+
OnEndpointChanged(index, std::make_shared<XdsEndpointResource>(),
|
764
|
+
std::move(resolution_note));
|
749
765
|
}
|
750
766
|
|
751
767
|
//
|
@@ -755,11 +771,10 @@ void XdsClusterResolverLb::OnResourceDoesNotExist(size_t index,
|
|
755
771
|
ServerAddressList XdsClusterResolverLb::CreateChildPolicyAddressesLocked() {
|
756
772
|
ServerAddressList addresses;
|
757
773
|
for (const auto& discovery_entry : discovery_mechanisms_) {
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
const auto& priority_entry =
|
762
|
-
discovery_entry.latest_update->priorities[priority];
|
774
|
+
const auto& priority_list =
|
775
|
+
GetUpdatePriorityList(*discovery_entry.latest_update);
|
776
|
+
for (size_t priority = 0; priority < priority_list.size(); ++priority) {
|
777
|
+
const auto& priority_entry = priority_list[priority];
|
763
778
|
std::string priority_child_name =
|
764
779
|
discovery_entry.GetChildPolicyName(priority);
|
765
780
|
for (const auto& p : priority_entry.localities) {
|
@@ -803,10 +818,10 @@ XdsClusterResolverLb::CreateChildPolicyConfigLocked() {
|
|
803
818
|
Json::Object priority_children;
|
804
819
|
Json::Array priority_priorities;
|
805
820
|
for (const auto& discovery_entry : discovery_mechanisms_) {
|
821
|
+
const auto& priority_list =
|
822
|
+
GetUpdatePriorityList(*discovery_entry.latest_update);
|
806
823
|
const auto& discovery_config = discovery_entry.config();
|
807
|
-
for (size_t priority = 0;
|
808
|
-
priority < discovery_entry.latest_update->priorities.size();
|
809
|
-
++priority) {
|
824
|
+
for (size_t priority = 0; priority < priority_list.size(); ++priority) {
|
810
825
|
// Determine what xDS LB policy to use.
|
811
826
|
Json child_policy;
|
812
827
|
if (!discovery_entry.discovery_mechanism->override_child_policy()
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
#include "src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h"
|
20
20
|
|
21
|
+
#include <inttypes.h>
|
21
22
|
#include <stddef.h>
|
22
23
|
|
23
24
|
#include <algorithm>
|
@@ -28,6 +29,7 @@
|
|
28
29
|
#include <set>
|
29
30
|
#include <string>
|
30
31
|
#include <tuple>
|
32
|
+
#include <type_traits>
|
31
33
|
#include <utility>
|
32
34
|
#include <vector>
|
33
35
|
|
@@ -50,6 +52,7 @@
|
|
50
52
|
#include "src/core/lib/channel/channel_args.h"
|
51
53
|
#include "src/core/lib/config/core_configuration.h"
|
52
54
|
#include "src/core/lib/debug/trace.h"
|
55
|
+
#include "src/core/lib/experiments/experiments.h"
|
53
56
|
#include "src/core/lib/gprpp/debug_location.h"
|
54
57
|
#include "src/core/lib/gprpp/match.h"
|
55
58
|
#include "src/core/lib/gprpp/orphanable.h"
|
@@ -430,7 +433,10 @@ void XdsOverrideHostLb::ResetBackoffLocked() {
|
|
430
433
|
|
431
434
|
absl::Status XdsOverrideHostLb::UpdateLocked(UpdateArgs args) {
|
432
435
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
433
|
-
gpr_log(GPR_INFO,
|
436
|
+
gpr_log(GPR_INFO,
|
437
|
+
"[xds_override_host_lb %p] Received update with %" PRIuPTR
|
438
|
+
" addresses",
|
439
|
+
this, args.addresses.ok() ? args.addresses->size() : 0);
|
434
440
|
}
|
435
441
|
auto old_config = std::move(config_);
|
436
442
|
// Update config.
|
@@ -498,6 +504,10 @@ OrphanablePtr<LoadBalancingPolicy> XdsOverrideHostLb::CreateChildPolicyLocked(
|
|
498
504
|
absl::StatusOr<ServerAddressList> XdsOverrideHostLb::UpdateAddressMap(
|
499
505
|
absl::StatusOr<ServerAddressList> addresses) {
|
500
506
|
if (!addresses.ok()) {
|
507
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
508
|
+
gpr_log(GPR_INFO, "[xds_override_host_lb %p] address error: %s", this,
|
509
|
+
addresses.status().ToString().c_str());
|
510
|
+
}
|
501
511
|
return addresses;
|
502
512
|
}
|
503
513
|
ServerAddressList return_value;
|
@@ -505,13 +515,30 @@ absl::StatusOr<ServerAddressList> XdsOverrideHostLb::UpdateAddressMap(
|
|
505
515
|
for (const auto& address : *addresses) {
|
506
516
|
XdsHealthStatus status = GetAddressHealthStatus(address);
|
507
517
|
if (status.status() != XdsHealthStatus::kDraining) {
|
518
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
519
|
+
gpr_log(GPR_INFO,
|
520
|
+
"[xds_override_host_lb %p] address %s: not draining, "
|
521
|
+
"passing to child",
|
522
|
+
this, address.ToString().c_str());
|
523
|
+
}
|
508
524
|
return_value.push_back(address);
|
509
525
|
} else if (!config_->override_host_status_set().Contains(status)) {
|
510
526
|
// Skip draining hosts if not in the override status set.
|
527
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
528
|
+
gpr_log(GPR_INFO,
|
529
|
+
"[xds_override_host_lb %p] address %s: draining but not in "
|
530
|
+
"override_host_status set -- ignoring",
|
531
|
+
this, address.ToString().c_str());
|
532
|
+
}
|
511
533
|
continue;
|
512
534
|
}
|
513
535
|
auto key = grpc_sockaddr_to_uri(&address.address());
|
514
536
|
if (key.ok()) {
|
537
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
538
|
+
gpr_log(GPR_INFO,
|
539
|
+
"[xds_override_host_lb %p] address %s: adding map key %s", this,
|
540
|
+
address.ToString().c_str(), key->c_str());
|
541
|
+
}
|
515
542
|
addresses_for_map.emplace(std::move(*key), status);
|
516
543
|
}
|
517
544
|
}
|
@@ -519,6 +546,10 @@ absl::StatusOr<ServerAddressList> XdsOverrideHostLb::UpdateAddressMap(
|
|
519
546
|
MutexLock lock(&subchannel_map_mu_);
|
520
547
|
for (auto it = subchannel_map_.begin(); it != subchannel_map_.end();) {
|
521
548
|
if (addresses_for_map.find(it->first) == addresses_for_map.end()) {
|
549
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
550
|
+
gpr_log(GPR_INFO, "[xds_override_host_lb %p] removing map key %s",
|
551
|
+
this, it->first.c_str());
|
552
|
+
}
|
522
553
|
it = subchannel_map_.erase(it);
|
523
554
|
} else {
|
524
555
|
++it;
|
@@ -527,10 +558,20 @@ absl::StatusOr<ServerAddressList> XdsOverrideHostLb::UpdateAddressMap(
|
|
527
558
|
for (const auto& key_status : addresses_for_map) {
|
528
559
|
auto it = subchannel_map_.find(key_status.first);
|
529
560
|
if (it == subchannel_map_.end()) {
|
561
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
562
|
+
gpr_log(GPR_INFO, "[xds_override_host_lb %p] adding map key %s", this,
|
563
|
+
key_status.first.c_str());
|
564
|
+
}
|
530
565
|
subchannel_map_.emplace(std::piecewise_construct,
|
531
566
|
std::forward_as_tuple(key_status.first),
|
532
567
|
std::forward_as_tuple(key_status.second));
|
533
568
|
} else {
|
569
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_xds_override_host_trace)) {
|
570
|
+
gpr_log(GPR_INFO,
|
571
|
+
"[xds_override_host_lb %p] setting EDS health status for "
|
572
|
+
"%s to %s",
|
573
|
+
this, key_status.first.c_str(), key_status.second.ToString());
|
574
|
+
}
|
534
575
|
it->second.SetEdsHealthStatus(key_status.second);
|
535
576
|
}
|
536
577
|
}
|
@@ -678,8 +719,19 @@ void XdsOverrideHostLb::SubchannelWrapper::UpdateConnectivityState(
|
|
678
719
|
}
|
679
720
|
|
680
721
|
void XdsOverrideHostLb::SubchannelWrapper::Orphan() {
|
681
|
-
|
682
|
-
|
722
|
+
if (!IsWorkSerializerDispatchEnabled()) {
|
723
|
+
key_.reset();
|
724
|
+
wrapped_subchannel()->CancelConnectivityStateWatch(watcher_);
|
725
|
+
return;
|
726
|
+
}
|
727
|
+
WeakRefCountedPtr<SubchannelWrapper> self = WeakRef();
|
728
|
+
policy_->work_serializer()->Run(
|
729
|
+
[self = std::move(self)]() {
|
730
|
+
self->key_.reset();
|
731
|
+
self->wrapped_subchannel()->CancelConnectivityStateWatch(
|
732
|
+
self->watcher_);
|
733
|
+
},
|
734
|
+
DEBUG_LOCATION);
|
683
735
|
}
|
684
736
|
|
685
737
|
grpc_pollset_set* XdsOverrideHostLb::SubchannelWrapper::
|