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 — Add support for BIGTABLE_EMULATOR_HOST environment variable · Issue #2242 · googleapis/google-cloud-python

Add support for BIGTABLE_EMULATOR_HOST environment variable #2242

New issue
Copy link
New issue
Copy link
Closed
Closed
Add support for BIGTABLE_EMULATOR_HOST environment variable#2242
Copy link
Assignees
dhermes
Labels
api: bigtableIssues related to the Bigtable API.

Description

@garye
garye
opened on Sep 2, 2016
Issue body actions

The Python client should support the Bigtable emulator.

This should work similarly to the python support for PUBSUB_EMULATOR_HOST and DATASTORE_EMULATOR_HOST.

cc @mbrukman

Activity

  1. daspecster
    added
    api: bigtableIssues related to the Bigtable API.
    on Sep 2, 2016
  2. dhermes commented on Sep 2, 2016

    @dhermes
    dhermes
    on Sep 2, 2016
    Contributor
    More actions

    👍 I just noticed last week that the Bigtable emulator had been added. I've been meaning to sort out some b0rken-ness with the other clients (never checked if they worked after adding gRPC support to the clients).

  3. dhermes commented on Sep 6, 2016

    @dhermes
    dhermes
    on Sep 6, 2016
    Contributor
    More actions

    @garye I mostly have this finished but it seems like most of system_tests/bigtable.py fails because the backend comes back with UNAVAILABLE. Is there a list of methods actually working in the emulator?

  4. garye commented on Sep 6, 2016

    @garye
    garye
    on Sep 6, 2016
    ContributorAuthor
    More actions

    Instance-related commands aren't implemented and I suspect that's what you're running into. It's meant for table-level admin/read/write operations, so you can reference any project/instance when you create a table.

  5. dhermes commented on Sep 6, 2016

    @dhermes
    dhermes
    on Sep 6, 2016
    Contributor
    More actions

    OK. It seems empirically that deleting a table doesn't work. Also, I'm starting to think some of the UNAVAILABLE I'm seeing are masked as other issues, e.g. creating a table that already exists (since a previous delete failed). And possibly my system test has too high a QPS for the server?

  6. garye commented on Sep 6, 2016

    @garye
    garye
    on Sep 6, 2016
    ContributorAuthor
    More actions
    • UNAVAILABLE was because the server crashed when asked to do a ReadRows with no Rows specified. This should be supported so we'll fix ASAP, but it will be at least a week until a fix can make it into a gcloud release.
    • Deleting a table should work fine, it does locally when I ran a patched emulator that handles the ReadRows request.
    • The TableAdmin tests are supported and pass locally if enabled.
    • Reading with a label is not supported and isn't high on the list since it's seldom used. I'd skip that test in emulator mode.
  7. dhermes commented on Sep 6, 2016

    @dhermes
    dhermes
    on Sep 6, 2016
    Contributor
    More actions

    Thanks for digging into this! We already skip the IAM tests on the Pub / Sub side when running in the emulator, so not a big deal for labels.

    The sugar to allow local connections when the emulator already works before waiting for the gcloud CLI fix to be released. Worth adding that support and then adding a working tox -e bigtable-emulator in a subsequent PR?

  8. garye commented on Sep 6, 2016

    @garye
    garye
    on Sep 6, 2016
    ContributorAuthor
    More actions

    Yeah that works for me, I'd like to see something out sooner rather than later.

  9. dhermes commented on Sep 8, 2016

    @dhermes
    dhermes
    on Sep 8, 2016
    Contributor
    More actions

    @garye Now that #2249 has been merged, can you give me a heads up when the fixes are in so I can add tox -e bigtable-emulator?

  10. garye commented on Sep 15, 2016

    @garye
    garye
    on Sep 15, 2016
    ContributorAuthor
    More actions

    @dhermes The latest gcloud/emulator release should have the fix. Can you give it a shot?

  11. dhermes
    added a commit that references this issue on Sep 15, 2016

    Adding bigtable-emulator tox environment.

    This issue will close once commit afc36e2 is merged into the 'master' branch.
    afc36e2
  12. dhermes commented on Sep 15, 2016

    @dhermes
    dhermes
    on Sep 15, 2016
    Contributor
    More actions

    @garye Thanks for the heads-up. Check out #2322 and LMK if I've disable too many test cases.

  13. dhermes
    added 3 commits that reference this issue on Sep 16, 2016

    Adding bigtable-emulator tox environment.

    This issue will close once commit c3dc0de is merged into the 'master' branch.
    c3dc0de

    Adding bigtable-emulator tox environment.

    This issue will close once commit 5b77316 is merged into the 'master' branch.
    5b77316

    Adding bigtable-emulator tox environment.

    This issue will close once commit b42bdc8 is merged into the 'master' branch.
    b42bdc8
  14. dhermes
    closed this as completedin #2322on Sep 20, 2016
  15. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  16. parthea
    added a commit that references this issue on Mar 6, 2026

    chore(deps): update all dependencies to v3.35.0 (#2242)

    5f9721b
  17. parthea
    added a commit that references this issue on Apr 1, 2026

    chore(main): release 2.29.0 (#2242)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: bigtableIssues related to the Bigtable API.

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.