Skip to content

Commit

Permalink
Merge pull request #2356 from murgatroid99/grpc-js-xds_cluster_resolv…
Browse files Browse the repository at this point in the history
…er_priority_reuse_fix

grpc-js-xds: Fix bug that prevented priority name reuse
  • Loading branch information
murgatroid99 committed Feb 10, 2023
2 parents dd7e1a9 + faf96a0 commit 54c4b9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js-xds/interop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ COPY --from=build /node/src/grpc-node/packages/grpc-js ./packages/grpc-js/
COPY --from=build /node/src/grpc-node/packages/grpc-js-xds ./packages/grpc-js-xds/

ENV GRPC_VERBOSITY="DEBUG"
ENV GRPC_TRACE=xds_client,xds_resolver,cds_balancer,eds_balancer,priority,weighted_target,round_robin,resolving_load_balancer,subchannel,keepalive,dns_resolver,fault_injection,http_filter,csds,outlier_detection
ENV GRPC_TRACE=xds_client,xds_resolver,xds_cluster_manager,cds_balancer,xds_cluster_resolver,xds_cluster_impl,priority,weighted_target,round_robin,resolving_load_balancer,subchannel,keepalive,dns_resolver,fault_injection,http_filter,csds,outlier_detection

ENTRYPOINT [ "node", "/node/src/grpc-node/packages/grpc-js-xds/build/interop/xds-interop-client" ]
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export class XdsClusterResolver implements LoadBalancer {
...address,
});
}
newLocalityPriorities.set(localityToName(localityObj.locality), priority);
}
const weightedTargetConfig = new WeightedTargetLoadBalancingConfig(childTargets);
const xdsClusterImplConfig = new XdsClusterImplLoadBalancingConfig(entry.discoveryMechanism.cluster, priorityEntry.dropCategories, [weightedTargetConfig], entry.discoveryMechanism.eds_service_name, entry.discoveryMechanism.lrs_load_reporting_server_name, entry.discoveryMechanism.max_concurrent_requests);
Expand Down

0 comments on commit 54c4b9c

Please sign in to comment.