Skip to content

Commit

Permalink
Fix LogEmitterProvider.force_flush hanging randomly (#2714)
Browse files Browse the repository at this point in the history
Co-authored-by: Srikanth Chekuri <[email protected]>
  • Loading branch information
overmeulen and srikanthccv authored May 25, 2022
1 parent abd9a5b commit 8200f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.12.0rc1-0.31b0...HEAD)

- Fix LogEmitterProvider.force_flush hanging randomly
([#2714](https://github.com/open-telemetry/opentelemetry-python/pull/2714))

## [1.12.0rc1-0.31b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.12.0rc1-0.31b0) - 2022-05-17


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def worker(self):
flush_request = self._get_and_unset_flush_request()
if (
len(self._queue) < self._max_export_batch_size
and self._flush_request is None
and flush_request is None
):
self._condition.wait(timeout)

Expand Down

0 comments on commit 8200f45

Please sign in to comment.