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

use the multi_thread executor to run the telemetry hang test #922

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

garypen
Copy link
Contributor

@garypen garypen commented Apr 27, 2022

The test wasn't using the multi_thread executor, so eventually it would
trip over the bug in opentelemetry which we've hit in the past where the
runtime would hang for not fully understood reasons.

see: open-telemetry/opentelemetry-rust#536

Using the multi_thread executor is the recommended work-around.

I've also remove the redundant thread spawn from the telemetry Drop
implementation, since I don't think it's required as well as the
spawn_blocking() call.

I've run this test in a tight loop for a couple of hours (on my M1
laptop) with no issues.

The test wasn't using the multi_thread executor, so eventually it would
trip over the bug in opentelemetry which we've hit in the past where the
runtime would hang for not fully understood reasons.

see: open-telemetry/opentelemetry-rust#536

Using the multi_thread executor is the recommended work-around.

I've also remove the redundant thread spawn from the telemetry Drop
implementation, since I don't think it's required as well as the
spawn_blocking() call.

I've run this test in a tight loop for a couple of hours (on my M1
laptop) with no issues.
@garypen garypen self-assigned this Apr 27, 2022
@garypen garypen requested a review from Geal April 27, 2022 07:18
@netlify
Copy link

netlify bot commented Apr 27, 2022

Deploy Preview for apollo-router-docs canceled.

Name Link
🔨 Latest commit 270d4c5
🔍 Latest deploy log https://app.netlify.com/sites/apollo-router-docs/deploys/6268ee77eb582a00085cf8a3

@garypen garypen requested a review from BrynCooke April 27, 2022 07:18
@github-actions
Copy link
Contributor

@garypen your pull request is missing a changelog!

I'm beginning to wonder if I need a new keyboard...
@garypen garypen merged commit 405c9d9 into main Apr 27, 2022
@garypen garypen deleted the garypen/914-telemetry-hang branch April 27, 2022 08:57
@BrynCooke BrynCooke added this to the v0.1.0-preview.7 milestone May 4, 2022
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.

4 participants