Skip to content

Introduce Schema Registry Functionality to Managed KafkaIO Write.#35644

Merged
ahmedabu98 merged 12 commits intoapache:masterfrom
fozzie15:managed_io_sr_write
Sep 9, 2025
Merged

Introduce Schema Registry Functionality to Managed KafkaIO Write.#35644
ahmedabu98 merged 12 commits intoapache:masterfrom
fozzie15:managed_io_sr_write

Conversation

@fozzie15
Copy link
Copy Markdown
Contributor

Allow users to write messages using a schema registry when utilizing ManagedIO for Google Dataflow. This will allow users to utilize the full capabilities of the Google Cloud Managed Service for Apache Kafka offering.


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.

@fozzie15 fozzie15 force-pushed the managed_io_sr_write branch 4 times, most recently from 8111242 to 260008c Compare September 4, 2025 23:39
@fozzie15 fozzie15 marked this pull request as ready for review September 4, 2025 23:41
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 5, 2025

Assigning reviewers:

R: @m-trieu for label java.
R: @sjvanrossum for label kafka.

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

implementation (group: 'com.google.cloud.hosted.kafka', name: 'managed-kafka-auth-login-handler', version: '1.0.5') {
// "kafka-clients" has to be provided since user can use its own version.
exclude group: 'org.apache.kafka', module: 'kafka-clients'
exclude group: "io.confluent", module: "kafka-schema-registry-client"
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.

Can you please add a comment explaining why this exclusion is needed? Similar to kafka-clients above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added a comment. This is specified in the cloud documentation here https://cloud.google.com/managed-service-for-apache-kafka/docs/quickstart-avro#configure_and_run_the_producer but we want to use the schema registry client provided by the schema registry dependency instead of the transitive dependency here.

@fozzie15 fozzie15 force-pushed the managed_io_sr_write branch from 260008c to 139f9fe Compare September 5, 2025 16:22
Copy link
Copy Markdown
Contributor

@ahmedabu98 ahmedabu98 left a comment

Choose a reason for hiding this comment

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

just some nits, but overall LGTM

would be great if we can include an integration test too

@ahmedabu98 ahmedabu98 merged commit 359c9eb into apache:master Sep 9, 2025
21 checks passed
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.

3 participants