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 <[email protected]>
  • Loading branch information
2 people authored and lavkesh committed Nov 22, 2022
1 parent 87b6bfd commit 88adc36
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 88adc36

Please sign in to comment.