File tree Expand file tree Collapse file tree 6 files changed +1
-41
lines changed
grpc-js-xds/src/xds-stream-state Expand file tree Collapse file tree 6 files changed +1
-41
lines changed Original file line number Diff line number Diff line change @@ -164,22 +164,16 @@ export class CdsState implements XdsStreamState<Cluster__Output> {
164
164
}
165
165
this . latestResponses = validResponses ;
166
166
this . latestIsV2 = isV2 ;
167
- const allEdsServiceNames : Set < string > = new Set < string > ( ) ;
168
167
const allClusterNames : Set < string > = new Set < string > ( ) ;
169
168
for ( const message of validResponses ) {
170
169
allClusterNames . add ( message . name ) ;
171
- const edsServiceName = message . eds_cluster_config ?. service_name ?? '' ;
172
- allEdsServiceNames . add (
173
- edsServiceName === '' ? message . name : edsServiceName
174
- ) ;
175
170
const watchers = this . watchers . get ( message . name ) ?? [ ] ;
176
171
for ( const watcher of watchers ) {
177
172
watcher . onValidUpdate ( message , isV2 ) ;
178
173
}
179
174
}
180
175
trace ( 'Received CDS updates for cluster names [' + Array . from ( allClusterNames ) + ']' ) ;
181
176
result . missing = this . handleMissingNames ( allClusterNames ) ;
182
- this . edsState . handleMissingNames ( allEdsServiceNames ) ;
183
177
return result ;
184
178
}
185
179
Original file line number Diff line number Diff line change @@ -129,23 +129,6 @@ export class EdsState implements XdsStreamState<ClusterLoadAssignment__Output> {
129
129
return true ;
130
130
}
131
131
132
- /**
133
- * Given a list of edsServiceNames (which may actually be the cluster name),
134
- * for each watcher watching a name not on the list, call that watcher's
135
- * onResourceDoesNotExist method.
136
- * @param allClusterNames
137
- */
138
- handleMissingNames ( allEdsServiceNames : Set < string > ) {
139
- for ( const [ edsServiceName , watcherList ] of this . watchers . entries ( ) ) {
140
- if ( ! allEdsServiceNames . has ( edsServiceName ) ) {
141
- trace ( 'Reporting EDS resource does not exist for edsServiceName ' + edsServiceName ) ;
142
- for ( const watcher of watcherList ) {
143
- watcher . onResourceDoesNotExist ( ) ;
144
- }
145
- }
146
- }
147
- }
148
-
149
132
handleResponses ( responses : ResourcePair < ClusterLoadAssignment__Output > [ ] , isV2 : boolean ) : HandleResponseResult {
150
133
const validResponses : ClusterLoadAssignment__Output [ ] = [ ] ;
151
134
let result : HandleResponseResult = {
Original file line number Diff line number Diff line change @@ -183,21 +183,15 @@ export class LdsState implements XdsStreamState<Listener__Output> {
183
183
this . latestResponses = validResponses ;
184
184
this . latestIsV2 = isV2 ;
185
185
const allTargetNames = new Set < string > ( ) ;
186
- const allRouteConfigNames = new Set < string > ( ) ;
187
186
for ( const message of validResponses ) {
188
187
allTargetNames . add ( message . name ) ;
189
- const httpConnectionManager = decodeSingleResource ( HTTP_CONNECTION_MANGER_TYPE_URL_V3 , message . api_listener ! . api_listener ! . value ) ;
190
- if ( httpConnectionManager . rds ) {
191
- allRouteConfigNames . add ( httpConnectionManager . rds . route_config_name ) ;
192
- }
193
188
const watchers = this . watchers . get ( message . name ) ?? [ ] ;
194
189
for ( const watcher of watchers ) {
195
190
watcher . onValidUpdate ( message , isV2 ) ;
196
191
}
197
192
}
198
193
trace ( 'Received LDS response with listener names [' + Array . from ( allTargetNames ) + ']' ) ;
199
194
result . missing = this . handleMissingNames ( allTargetNames ) ;
200
- this . rdsState . handleMissingNames ( allRouteConfigNames ) ;
201
195
return result ;
202
196
}
203
197
Original file line number Diff line number Diff line change @@ -173,16 +173,6 @@ export class RdsState implements XdsStreamState<RouteConfiguration__Output> {
173
173
return true ;
174
174
}
175
175
176
- handleMissingNames ( allRouteConfigNames : Set < string > ) {
177
- for ( const [ routeConfigName , watcherList ] of this . watchers . entries ( ) ) {
178
- if ( ! allRouteConfigNames . has ( routeConfigName ) ) {
179
- for ( const watcher of watcherList ) {
180
- watcher . onResourceDoesNotExist ( ) ;
181
- }
182
- }
183
- }
184
- }
185
-
186
176
handleResponses ( responses : ResourcePair < RouteConfiguration__Output > [ ] , isV2 : boolean ) : HandleResponseResult {
187
177
const validResponses : RouteConfiguration__Output [ ] = [ ] ;
188
178
let result : HandleResponseResult = {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.4.3 " ,
3
+ "version" : " 1.4.4 " ,
4
4
"description" : " gRPC Library for Node - pure JS implementation" ,
5
5
"homepage" : " https://grpc.io/" ,
6
6
"repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -555,7 +555,6 @@ export class Subchannel {
555
555
( error as Error ) . message
556
556
) ;
557
557
} ) ;
558
- registerChannelzSocket ( this . subchannelAddressString , ( ) => this . getChannelzSocketInfo ( ) ! ) ;
559
558
}
560
559
561
560
private startConnectingInternal ( ) {
You can’t perform that action at this time.
0 commit comments