Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-8735: Add support for Google Cloud Pub/Sub locational endpoints #160

Merged

Conversation

kesompochy
Copy link
Contributor

Related Issue: https://issues.redhat.com/browse/DBZ-8735

This PR adds support for connecting to Google Cloud Pub/Sub locational endpoints by introducing a new configuration parameter debezium.sink.pubsub.region.

The implementation leverages the standard Publisher.Builder's setEndpoint method to establish connections to locational endpoints.
ref: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.cloud.pubsub.v1.Publisher.Builder

The parameter is named 'region' instead of 'locational.endpoint' to maintain consistency with other sinks like Kinesis and PubSub Lite.

@kesompochy
Copy link
Contributor Author

I've added a commit to fix code formatting issues by running:

$ mvn -f debezium-server-pubsub net.revelc.code.formatter:formatter-maven-plugin:2.20.0:format

@jpechane jpechane merged commit af86c42 into debezium:main Mar 3, 2025
3 checks passed
@jpechane
Copy link
Contributor

jpechane commented Mar 3, 2025

@kesompochy Applied, thanks! Could you please send a docs PR update to the core repo too?

@kesompochy
Copy link
Contributor Author

@jpechane
Of course! I'll prepare a documentation PR. Thanks for merging this change!

@kesompochy
Copy link
Contributor Author

I have sent a docs PR.
debezium/debezium#6208

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