Skip to content

Commit

Permalink
fix: Adding service provider configuration files to fix the grpc sink…
Browse files Browse the repository at this point in the history
… exception "Could not find policy 'pick_first'" (#203)

In the current implementation, the gRPC client chooses default LoadBalancerProvider ('pick_first') and default NameResolverProvider(DNS). The implementation classes PickFirstLoadBalancerProvider and DnsNameResolverProvider respectively are missing.

We can handle the issue with the including implementation classes through service provider configuration files.
* SPI io.grpc.LoadBalancerProvider: io.grpc.internal.PickFirstLoadBalancerProvider
* SPI io.grpc.NameResolverProvider: io.grpc.internal.DnsNameResolverProvider

Co-authored-by: Shreyansh <shreyansh.sangolli@gojek.com>
  • Loading branch information
Shreyansh228 and Shreyansh authored Nov 17, 2022
1 parent 2e67bb5 commit 4237ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.grpc.internal.PickFirstLoadBalancerProvider
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.grpc.internal.DnsNameResolverProvider

0 comments on commit 4237ead

Please sign in to comment.