-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change pubsub endpoint from pubsub-experimental to pubsub #1149
Conversation
Please @lesv can you have a look at this? |
@garrettjonesgoogle would you also mind having a quick look? |
Why not just edit the line in PublisherSettings & SubscriberSettings with the default host? |
This way we also support setting other hosts using the |
.provideCredentialsWith( | ||
credentials.createScoped(PublisherSettings.DEFAULT_SERVICE_SCOPES)) | ||
.build(); | ||
ConnectionSettings subConnectionSettings = ConnectionSettings.newBuilder() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Ok it makes sense to plumb through the host from the options. But, my preference would be for PubSubOptions.DEFAULT_HOST to be set to PublisherSettings.DEFAULT_SERVICE_ADDRESS. If you simply edit the DEFAULT_SERVICE_ADDRESS value e.g. at https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/PublisherSettings.java#L112 , then it should match what the generator will output in the next generation, and there won't be a conflict. That said, it's not a strong opinion, and we can edit the veneer code when we generate next time. |
LGTM since this issue needs to be fixed urgently |
Confirmed this fixes #1150. I hand built |
Thanks for fixing this so quickly! Appreciate it. |
This change will be also made at the Veneer Toolkit level at next code-generation round. While we wait for that we go ahead and override the endpoint.
For reference:
pubsub-experimental.googleapis.com
stopped working today with the following error:See this comment and this StackOverflow question.