Skip to content

Commit 82f9b8e

Browse files
xds: Make cluster selection interceptor run before other filters (#12381)
Needed for `GcpAuthenticationFilter` to retrieve the cluster key set into the `CallOptions`.
1 parent 9ade38a commit 82f9b8e

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)