-
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
Batched Requests don't honor the host setting #3254
Comments
StorageOptions#getHost()
Hi @albertzaharovits , |
@hzyi-google I think we should fix this. For example, the user could be pointing the client to a test instance when integration testing. Right now, everything will hit the test instance, but batches will get to the real one, which is probably really confusing. |
Hi @hzyi-google , I was expecting that As @pongad hinted, our usecase is in the scope of integration testing. Specifically the GCS repository plugin for elasticsearch. The mock integ server is here: https://github.com/elastic/elasticsearch/blob/master/plugins/repository-gcs/qa/google-cloud-storage/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageTestServer.java We have skirted around it by using this hack: https://github.com/elastic/elasticsearch/blob/c351b51ac4f322ec5453806a8a0af027a71d5802/plugins/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageService.java#L121 |
@pongad @albertzaharovits Thanks for pointing this out. I'll work on this. |
Batch endpoint always hits
www.googleapis.com
irrespective of thehost
setting on theStorageOptions
that built the storage client.https://github.com/GoogleCloudPlatform/google-cloud-java/blob/52b727aef88ae76984aa3c02b4d7067e198d34b7/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java#L191
The text was updated successfully, but these errors were encountered: