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: otlp http exporter block thread (#1141) #1163

Merged
merged 3 commits into from
Dec 23, 2021
Merged

Conversation

wxl374
Copy link
Contributor

@wxl374 wxl374 commented Dec 23, 2021

Fixes #1141

Changes

fix deadlock when notify_all() called before wait().

@wxl374 wxl374 requested a review from a team December 23, 2021 04:01
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 23, 2021

CLA Signed

The committers are authorized under a signed CLA.

@@ -233,6 +254,9 @@ class ResponseHandler : public http_client::EventHandler
std::condition_variable cv_;
std::mutex mutex_;

// Whether notify has been called
bool stop_waiting_ = false;

// Whether the response from Elasticsearch has been received
Copy link
Member

@owent owent Dec 23, 2021

Choose a reason for hiding this comment

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

Could you please also fix the error message in this comment?

@owent
Copy link
Member

owent commented Dec 23, 2021

LGTM

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. LGTM.

@codecov
Copy link

codecov bot commented Dec 23, 2021

Codecov Report

Merging #1163 (b7072a5) into main (bb9d5de) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1163   +/-   ##
=======================================
  Coverage   93.38%   93.38%           
=======================================
  Files         165      165           
  Lines        6233     6233           
=======================================
  Hits         5820     5820           
  Misses        413      413           

@wxl374 wxl374 changed the title [WIP] fix: otlp http exporter block thread (#1141) fix: otlp http exporter block thread (#1141) Dec 23, 2021
@lalitb lalitb merged commit dcea27b into open-telemetry:main Dec 23, 2021
@lalitb lalitb mentioned this pull request Jan 3, 2022
3 tasks
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.

3 participants