Skip to content

Fix infinitely waiting when shutdown with more than one running http sessions.#1549

Merged
lalitb merged 1 commit intoopen-telemetry:mainfrom
owent:fix_1548
Aug 10, 2022
Merged

Fix infinitely waiting when shutdown with more than one running http sessions.#1549
lalitb merged 1 commit intoopen-telemetry:mainfrom
owent:fix_1548

Conversation

@owent
Copy link
Copy Markdown
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
Copy Markdown

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%) ⬇️

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#include <cstring>
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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