Skip to content

[client] Revert mgm client error handling #3764

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

Merged
merged 1 commit into from
Apr 30, 2025
Merged

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Apr 30, 2025

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 10:44
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the mgm client error handling logic for the gRPC client.

  • Removed explicit connection closure and state checking after streaming.
  • Simplified the error handling by directly returning the error from handleStream.
Comments suppressed due to low confidence (1)

management/client/grpc.go:131

  • Reverting the previous error handling removed the explicit connection closure step. Please confirm that the connection resource is properly closed elsewhere to prevent potential resource leaks.
return c.handleStream(ctx, *serverPubKey, sysInfo, msgHandler)

Copy link

@lixmal lixmal merged commit d5081ce into main Apr 30, 2025
34 of 35 checks passed
@lixmal lixmal deleted the fix/mgm-error-handling branch April 30, 2025 11:09
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.

2 participants