We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8c0cdc + 02a43a3 commit e581aadCopy full SHA for e581aad
packages/grpc-js-xds/src/xds-stream-state/rds-state.ts
@@ -89,6 +89,9 @@ export class RdsState extends BaseXdsStreamState<RouteConfiguration__Output> imp
89
}
90
91
if (route.route!.cluster_specifier === 'weighted_clusters') {
92
+ if (route.route.weighted_clusters!.total_weight?.value === 0) {
93
+ return false;
94
+ }
95
let weightSum = 0;
96
for (const clusterWeight of route.route.weighted_clusters!.clusters) {
97
weightSum += clusterWeight.weight?.value ?? 0;
0 commit comments