Skip to content

Commit 200f2bc

Browse files
kannanjgithubAgraVator
authored andcommitted
xds: Make cluster selection interceptor run before other filters (grpc#12381)
Needed for `GcpAuthenticationFilter` to retrieve the cluster key set into the `CallOptions`.
1 parent a5e5c2c commit 200f2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xds/src/main/java/io/grpc/xds/XdsNameResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public void onClose(Status status, Metadata trailers) {
525525
Result.newBuilder()
526526
.setConfig(config)
527527
.setInterceptor(combineInterceptors(
528-
ImmutableList.of(filters, new ClusterSelectionInterceptor())))
528+
ImmutableList.of(new ClusterSelectionInterceptor(), filters)))
529529
.build();
530530
}
531531

0 commit comments

Comments
 (0)