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 infinitely waiting when shutdown with more than one running http sessions. #1549

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

owent
Copy link
Member

@owent owent commented Aug 9, 2022

Signed-off-by: owentou owentou@tencent.com

Fixes #1548

…sessions.

Signed-off-by: owentou <owentou@tencent.com>
@owent owent requested a review from a team August 9, 2022 14:51
@codecov
Copy link

codecov bot commented Aug 9, 2022

Codecov Report

Merging #1549 (0440728) into main (319d854) will not change coverage.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1549   +/-   ##
=======================================
  Coverage   83.91%   83.91%           
=======================================
  Files         156      156           
  Lines        4908     4908           
=======================================
  Hits         4118     4118           
  Misses        790      790           
Impacted Files Coverage Δ
ext/src/http/client/curl/http_operation_curl.cc 76.03% <ø> (ø)
ext/src/http/client/curl/http_client_curl.cc 81.44% <50.00%> (+0.38%) ⬆️
sdk/src/trace/batch_span_processor.cc 90.63% <0.00%> (-0.78%) ⬇️

@@ -1,6 +1,8 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#include <cstring>
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, memcpy need cstring, some versions of gcc can not compile without this.

Copy link
Member

@esigo esigo 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 for the fix :)

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.

LGTM. Thanks for the fix.

@lalitb lalitb merged commit ba1cd0d into open-telemetry:main Aug 10, 2022
@owent owent deleted the fix_1548 branch August 25, 2022 07:31
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 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.

Deadlock when shutdown with more than one running http request and OTLP HTTP exporter
3 participants