mirror of https://github.com/grpc/grpc-node.git
grpc-js-xds: Validate continuity of priorities in EDS updates
This commit is contained in:
parent
8832fc2d39
commit
bedc9628f5
|
@ -92,6 +92,11 @@ export class EdsState extends BaseXdsStreamState<ClusterLoadAssignment__Output>
|
|||
return false;
|
||||
}
|
||||
}
|
||||
for (const priority of priorityTotalWeights.keys()) {
|
||||
if (priority > 0 && !priorityTotalWeights.has(priority - 1)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue