Skip to content

Fix BatchLogRecordProcessor worker thread killed by non-runtime exception#8529

Merged
jack-berg merged 1 commit into
open-telemetry:mainfrom
EvgeniiR:fix-batch-log-record-processor-non-runtime-exception
Jun 25, 2026
Merged

Fix BatchLogRecordProcessor worker thread killed by non-runtime exception#8529
jack-berg merged 1 commit into
open-telemetry:mainfrom
EvgeniiR:fix-batch-log-record-processor-non-runtime-exception

Conversation

@EvgeniiR

@EvgeniiR EvgeniiR commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Closes #8528
This is essentially the same issue as #4348 . Issue was fixed for BatchSpanProcessor, but still present in BatchLogRecordProcessor.

This PR also fixes it for BatchLogRecordProcessor

…tion

Mirror of open-telemetry#4402 for BatchSpanProcessor: catch (Throwable) with ThrowableUtil.propagateIfFatal so a checked exception thrown by a LogRecordExporter (e.g. from Kotlin) no longer kills the worker thread and silently drops all subsequent logs.
@EvgeniiR EvgeniiR requested a review from a team as a code owner June 24, 2026 15:15
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 24, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: EvgeniiR / name: EvgeniiR (054ff31)

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.93%. Comparing base (2ce864f) to head (054ff31).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #8529       +/-   ##
=============================================
+ Coverage     78.50%   90.93%   +12.42%     
- Complexity     8600    10208     +1608     
=============================================
  Files          1013     1013               
  Lines         29150    27176     -1974     
  Branches       3632     3184      -448     
=============================================
+ Hits          22884    24712     +1828     
+ Misses         5421     1738     -3683     
+ Partials        845      726      -119     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jack-berg jack-berg left a comment

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.

Thanks!

@jack-berg jack-berg merged commit b11380a into open-telemetry:main Jun 25, 2026
28 checks passed
@otelbot

otelbot Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @EvgeniiR! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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.

opentelemetry-sdk-trace: BatchLogRecordProcessor does not handle non-runtime exceptions

2 participants