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

fix: Cleanly shutdown the Telemetry plugin. #848

Closed
wants to merge 2 commits into from

Conversation

o0Ignition0o
Copy link
Contributor

fixes #847

The telemetry plugin would cause the router to hang if ServiceBuilder::build() failed.
This commit makes sure the Telemetry plugin is cleanly shutdown when it's the case, thus correctly erroring out instead of hanging.

fixes #847

The telemetry plugin would cause the router to hang if ServiceBuilder::build() failed.
This commit makes sure the Telemetry plugin is cleanly shutdown when it's the case, thus correctly erroring out instead of hanging.
@o0Ignition0o o0Ignition0o requested review from garypen, Geal and BrynCooke and removed request for garypen and Geal April 13, 2022 17:13
@netlify
Copy link

netlify bot commented Apr 13, 2022

Deploy Preview for apollo-router-docs canceled.

Name Link
🔨 Latest commit eabc41d
🔍 Latest deploy log https://app.netlify.com/sites/apollo-router-docs/deploys/6257c40d2bef8b00084e4eb1

@o0Ignition0o o0Ignition0o requested review from Geal, BrynCooke and bnjjj and removed request for BrynCooke April 13, 2022 17:13
@@ -308,6 +309,20 @@ impl Plugin for Telemetry {
}
}

impl Drop for Telemetry {
fn drop(&mut self) {
// This allows us to make sure the telemetry related globals
Copy link
Contributor

Choose a reason for hiding this comment

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

Gut feeling is that this will activate even if it was not supposed to, which would make this incorrect.
Let's talk this through.

Copy link
Contributor

@BrynCooke BrynCooke left a comment

Choose a reason for hiding this comment

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

I'm not confident about this, let's talk it through before merging.

@BrynCooke
Copy link
Contributor

Closing as #849 got merged

@BrynCooke BrynCooke closed this Apr 14, 2022
@BrynCooke BrynCooke added this to the v0.1.0-preview.5 milestone Apr 20, 2022
@abernix abernix deleted the igni/fix_telemetry_related_hang branch March 29, 2023 12:27
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.

Router hangs when loading a Parseable but invalid supergraph schema if the telemetry plugin is enabled
3 participants