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:
Michael Lumish 2020-09-28 13:39:22 -07:00 committed by GitHub
commit 6470e88d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -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();

View File

@ -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();