mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #1589 from murgatroid99/grpc-js_xds_resource_does_not_exist_watcher
grpc-js: xDS: Do not remove watchers in onResourceDoesNotExist
This commit is contained in:
commit
6470e88d92
@ -86,10 +86,6 @@ export class CdsLoadBalancer implements LoadBalancer {
|
||||
);
|
||||
},
|
||||
onResourceDoesNotExist: () => {
|
||||
this.xdsClient?.removeClusterWatcher(
|
||||
this.latestConfig!.cds.cluster,
|
||||
this.watcher
|
||||
);
|
||||
this.isWatcherActive = false;
|
||||
this.channelControlHelper.updateState(ConnectivityState.TRANSIENT_FAILURE, new UnavailablePicker({code: Status.UNAVAILABLE, details: 'CDS resource does not exist', metadata: new Metadata()}));
|
||||
this.childBalancer.destroy();
|
||||
|
||||
@ -140,10 +140,6 @@ export class EdsLoadBalancer implements LoadBalancer {
|
||||
this.updateChild();
|
||||
},
|
||||
onResourceDoesNotExist: () => {
|
||||
this.xdsClient?.removeEndpointWatcher(
|
||||
this.edsServiceName!,
|
||||
this.watcher
|
||||
);
|
||||
this.isWatcherActive = false;
|
||||
this.channelControlHelper.updateState(ConnectivityState.TRANSIENT_FAILURE, new UnavailablePicker({code: Status.UNAVAILABLE, details: 'EDS resource does not exist', metadata: new Metadata()}));
|
||||
this.childBalancer.destroy();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user