Skip to content

Remove callback wrapping for oauth_cb in AIO clients#2219

Open
Ojasva Jain (ojasvajain) wants to merge 4 commits intomasterfrom
fix_issue_2171
Open

Remove callback wrapping for oauth_cb in AIO clients#2219
Ojasva Jain (ojasvajain) wants to merge 4 commits intomasterfrom
fix_issue_2171

Conversation

@ojasvajain
Copy link
Member

@ojasvajain Ojasva Jain (ojasvajain) commented Mar 16, 2026

Fixes #2171

  • Fixed AIOConsumer/AIOProducer initialization failures by removing oauth_cb wrapping in _common.wrap_common_callbacks(). The OAuth callback is invoked by librdkafka's
    background thread and must be called directly, not scheduled on the event loop.

  • Created dedicated test file test_oauth_cb.py, moved oauth_cb related test cases from test_misc.py for better organization.

@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@sonarqube-confluent
Copy link

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.

AIOProducer doesn't work with OAUTHBEARER/oauth_cb

1 participant