GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Batched Requests don't honor the host setting · Issue #3254 · googleapis/google-cloud-java

Batched Requests don't honor the host setting #3254

New issue
Copy link
New issue
Copy link
Closed
#3340
Closed
Batched Requests don't honor the host setting#3254
#3340
Copy link
Assignees
yihanzhen
Labels
api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@albertzaharovits
albertzaharovits
opened on May 11, 2018
Issue body actions

Batch endpoint always hits www.googleapis.com irrespective of the host setting on the StorageOptions 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

Activity

  1. albertzaharovits
    changed the title [-]Batched Requests don't `StorageOptions#getHost()`[/-] [+]Batched Requests don't honor the host setting[/+] on May 11, 2018
  2. yihanzhen commented on May 18, 2018

    @yihanzhen
    yihanzhen
    on May 18, 2018
    Contributor
    More actions

    Hi @albertzaharovits ,
    IIRC batch requests of all google apis have to hit "https://www.googleapis.com/batch/[api_name]/[endpoint]". Is there a reason you want to change the batch URL?

  3. yihanzhen
    added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on May 18, 2018
  4. yihanzhen
    self-assigned this
    on May 18, 2018
  5. pongad commented on May 21, 2018

    @pongad
    pongad
    on May 21, 2018
    Contributor
    More actions

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

  6. albertzaharovits commented on May 22, 2018

    @albertzaharovits
    albertzaharovits
    on May 22, 2018
    Author
    More actions

    Hi @hzyi-google ,

    I was expecting that StorageOptionsBuilder.setHost be consistent across APIs. It is impractical if only certain APIs follow this setting.

    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

  7. yihanzhen commented on May 22, 2018

    @yihanzhen
    yihanzhen
    on May 22, 2018
    Contributor
    More actions

    @pongad @albertzaharovits Thanks for pointing this out. I'll work on this.

  8. yihanzhen
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed
    type: questionRequest for information or clarification. Not an issue.
    on May 30, 2018
  9. yihanzhen
    closed this as completedin #3340on Jun 4, 2018
  10. theacodes
    unassigned
    yihanzhen
    on Sep 28, 2018
  11. JustinBeckwith
    assigned
    yihanzhen
    on Feb 1, 2021
  12. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    chore: update googleapis commit at Sat Sep 28 02:25:09 UTC 2024 (#3254)

    6758ac3

    chore: unflake OpenTelemetrySpanTest.transactionRunnerWithFailedAndBe…

    68d9e92

    test(deps): update cross product test dependencies (#3254)

    c40c8e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yihanzhen
    yihanzhen

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.