Skip to content

Better error handling when tracking zone datalinks #7991

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 2 commits into from
Apr 22, 2025
Merged

Conversation

bnaecker
Copy link
Collaborator

  • Make operations for tracking / untracking datalinks in zones return actual error information, rather than a boolean.
  • Use try_send() internally when sending messages to the actual metrics task, to avoid blocking indefinitely if that task is corked. This helps ensure we don't block things like the instance lifecycle simply because we couldn't track the Propolis zone's datalinks -- we'd rather the instance boot without those in that case.
  • Fixes sled-agent internal metrics add/remove could handle errors more cleanly #7869

- Make operations for tracking / untracking datalinks in zones return
  actual error information, rather than a boolean.
- Use `try_send()` internally when sending messages to the actual
  metrics task, to avoid blocking indefinitely if that task is corked.
  This helps ensure we don't block things like the instance lifecycle
  simply because we couldn't track the Propolis zone's datalinks -- we'd
  rather the instance boot without those in that case.
- Fixes #7869
@bnaecker bnaecker requested a review from jgallagher April 18, 2025 21:49
Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

@bnaecker bnaecker enabled auto-merge (squash) April 22, 2025 16:44
@bnaecker bnaecker merged commit c531755 into main Apr 22, 2025
16 checks passed
@bnaecker bnaecker deleted the lessy-the-blocky branch April 22, 2025 18:05
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.

sled-agent internal metrics add/remove could handle errors more cleanly
2 participants