Skip to content

Issue 8316 okhttp rejected execution - #8769

Open
Rajkaran-122 wants to merge 2 commits into
open-telemetry:mainfrom
Rajkaran-122:issue-8316-okhttp-rejected-execution
Open

Issue 8316 okhttp rejected execution#8769
Rajkaran-122 wants to merge 2 commits into
open-telemetry:mainfrom
Rajkaran-122:issue-8316-okhttp-rejected-execution

Conversation

@Rajkaran-122

Copy link
Copy Markdown
Contributor

Summary

The production behavior described by #8316 is already implemented by #8422: OkHttp sender dispatchers are bounded and RejectedExecutionException is propagated through the sender error callback.

The existing OkHttp sender tests verify that an error is received, but they only assert that the error is non-null. This change strengthens those assertions to explicitly verify that the reported error is a RejectedExecutionException, matching the corresponding JDK sender test behavior.

Changes

  • Strengthen the rejection assertion in OkHttpHttpSenderTest.
  • Strengthen the rejection assertion in OkHttpGrpcSenderTest.
  • Verify that the error callback receives a RejectedExecutionException.
  • No production behavior is changed.

Testing

Ran the OkHttp sender tests and relevant formatting/checks.

Related issue: #8316

@Rajkaran-122
Rajkaran-122 requested a review from a team as a code owner September 2, 2026 21:08
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 2, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-09-04 09:49 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@otelbot otelbot Bot added the api-change Changes to public API surface area label Sep 2, 2026
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.29%. Comparing base (6738a35) to head (080584e).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8769      +/-   ##
============================================
- Coverage     91.29%   91.29%   -0.01%     
  Complexity    10498    10498              
============================================
  Files          1006     1006              
  Lines         28338    28338              
  Branches       3581     3581              
============================================
- Hits          25871    25870       -1     
  Misses         1675     1675              
- Partials        792      793       +1     

☔ 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.

@Rajkaran-122
Rajkaran-122 force-pushed the issue-8316-okhttp-rejected-execution branch from 060b30c to b0884c5 Compare September 2, 2026 21:30
@otelbot otelbot Bot removed the api-change Changes to public API surface area label Sep 2, 2026
Comment on lines +91 to +92
// OkHttp wraps RejectedExecutionException in InterruptedIOException with message "executor
// rejected"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

these comments aren't useful

@Rajkaran-122

Copy link
Copy Markdown
Contributor Author

@jkwatson PTAL when you get a chance. looking forward to getting this merged ,Thanks!

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.

2 participants