-
Notifications
You must be signed in to change notification settings - Fork 438
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
Conversation
|
@@ -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 |
There was a problem hiding this comment.
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?
LGTM |
There was a problem hiding this 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 Report
@@ Coverage Diff @@
## main #1163 +/- ##
=======================================
Coverage 93.38% 93.38%
=======================================
Files 165 165
Lines 6233 6233
=======================================
Hits 5820 5820
Misses 413 413 |
Fixes #1141
Changes
fix deadlock when notify_all() called before wait().