Skip to content

Bump kafka-clients to 3.9.2 in expansion-service to fix SASL auth on JDK 24+ (#39789) - #40311

Merged
stankiewicz merged 1 commit into
apache:masterfrom
stankiewicz:kafka-client-expn
Sep 28, 2026
Merged

stankiewicz merged 1 commit into
apache:masterfrom
stankiewicz:kafka-client-expn

Conversation

@stankiewicz

Copy link
Copy Markdown
Contributor

Description

Bumps the forced org.apache.kafka:kafka-clients dependency in sdks/java/io/expansion-service/build.gradle from 3.9.0 to 3.9.2.

Motivation

On JDK 24+ (e.g. beam_java25_sdk), JEP 486 permanently disables the Security Manager, causing Subject.getSubject(AccessControlContext) to throw an unconditional UnsupportedOperationException during Kafka SASL/OAUTHBEARER authentication callbacks.
Kafka 3.9.1 backports KAFKA-17078 (SecurityManagerCompatibility reflective shim), allowing Kafka clients to safely resolve the current Subject via Subject.current() on modern JDKs without introducing breaking changes.
Fixes #39789.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @kennknowles for label java.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@stankiewicz
stankiewicz merged commit 0e258d0 into apache:master Sep 28, 2026
27 checks passed
@stankiewicz
stankiewicz deleted the kafka-client-expn branch October 13, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]:KafkaIO OAUTHBEARER auth against GCP Managed Service for Apache Kafka broken starting 2.69.0 (works on 2.68.0)

2 participants