Skip to content

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

Open
EvgeniiR wants to merge 1 commit into
open-telemetry:mainfrom
EvgeniiR:fix-batch-log-record-processor-non-runtime-exception
Open

Fix BatchLogRecordProcessor worker thread killed by non-runtime exception#8529
EvgeniiR wants to merge 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

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.

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

1 participant