Skip to content

Conversation

@glenn-kim
Copy link
Member

After #4 , it still cause a lot of goroutines.

In my case the goroutines are blocked at google.golang.org/grpc.(*ccResolverWrapper).resolveNow for many hours.

In previous PR #4 , I've fixed to return early to avoid multiple calls from ClientConn.resolveNow, but it blocked in ccResolverWrapper.resolveNow and all goroutine is blocked when one goroutine is resolving cloudmap.

In this PR, I changed resolver not to block any goroutines referencing dnsResolver in grpc package.

@glenn-kim glenn-kim requested a review from KimMachineGun July 17, 2023 04:37
@glenn-kim glenn-kim changed the title make resolveNow non block make ResolveNow non block Jul 17, 2023
Co-authored-by: Geon Kim <geon0250@gmail.com>
@glenn-kim glenn-kim requested a review from KimMachineGun July 18, 2023 00:21
Copy link
Contributor

@KimMachineGun KimMachineGun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@glenn-kim glenn-kim merged commit fb354c5 into main Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants