Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Add cancel context to NewGRPCClient #720

Merged

Conversation

kthatipally
Copy link
Contributor

PR Summary

Bug fix to address the issue of java-external-provider.exe not ending after analysis completion.
Introduces a cancel context to the NewGRPCClient to ensure proper termination of the gRPC client.

  • provider/grpc/provider.go: Added context.WithCancel to manage the lifecycle of the gRPC client and ensure it can be properly stopped.
  • provider/grpc/provider.go: Updated grpcProvider struct to include cancelCmd and invoked cancelCmd() in the Stop method to terminate the context.

@kthatipally kthatipally changed the title Add cancel context to NewGRPCClient 🐛 Add cancel context to NewGRPCClient Nov 13, 2024
@kthatipally kthatipally changed the title 🐛 Add cancel context to NewGRPCClient 🐛 Add cancel context to NewGRPCClient Nov 13, 2024
@eemcmullan
Copy link
Contributor

@kthatipally LGTM, thanks! Just needs sign-off

@kthatipally kthatipally force-pushed the kthatipally/add-cancel-context-grpc branch from 99dc02a to 1422af9 Compare November 22, 2024 22:51
@dymurray dymurray added the cherry-pick/release-0.6 This PR should be cherry-picked to release-0.6 branch label Dec 10, 2024
@dymurray dymurray merged commit 6e059e8 into konveyor:main Dec 16, 2024
9 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 16, 2024
### PR Summary
Bug fix to address the issue of java-external-provider.exe not ending
after analysis completion.
Introduces a cancel context to the NewGRPCClient to ensure proper
termination of the gRPC client.

- provider/grpc/provider.go: Added context.WithCancel to manage the
lifecycle of the gRPC client and ensure it can be properly stopped.
- provider/grpc/provider.go: Updated grpcProvider struct to include
cancelCmd and invoked cancelCmd() in the Stop method to terminate the
context.

Signed-off-by: kthatipally <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
dymurray pushed a commit that referenced this pull request Dec 16, 2024
### PR Summary
Bug fix to address the issue of java-external-provider.exe not ending
after analysis completion.
Introduces a cancel context to the NewGRPCClient to ensure proper
termination of the gRPC client.

- provider/grpc/provider.go: Added context.WithCancel to manage the
lifecycle of the gRPC client and ensure it can be properly stopped.
- provider/grpc/provider.go: Updated grpcProvider struct to include
cancelCmd and invoked cancelCmd() in the Stop method to terminate the
context.

Signed-off-by: kthatipally
<[email protected]>
Signed-off-by: Cherry Picker <[email protected]>

Signed-off-by: kthatipally <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: Keerthi Thatipally <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-0.6 This PR should be cherry-picked to release-0.6 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants