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

[ddm-admin-client] Remove sneaky tokio::spawn()s #7507

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgallagher
Copy link
Contributor

Changes to our ddm-admin-client wrapper library:

  • advertise_prefix is now advertise_prefixes, and is a straight pass-through to the underlying progenitor client (i.e., it no longer tokio::spawn()s an infinite retry loop). I inlined the retry loop at all the call sites. This is messy in sled-agent, and I stuck comments on them about cleaning up. It also makes it super obvious that one of them is not correct (as we noted in [sled agent] Zone initialization causes maghemite advertisement, but nothing stops this on zone teardown #7377).
  • enable_stats got the same treatment (no more tokio::spawn; inline the retry loop at its one callsite).
  • Removed advertise_tunnel_endpoint() (it had no callers).

This gets rid of all the hidden tokio::spawn()s, which fixes #7378.

I think the chances of this breaking something are pretty small, but since it touches installinator, I'll run through a mupdate on a racklette before merging.

Copy link
Contributor

@andrewjstone andrewjstone 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!

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.

ddm-admin-client wraps calls with tokio::spawn-ed tasks that are never awaited
2 participants