Skip to content

Bigtable: copy InstanceName to data.models.#3063

Merged
garrettjonesgoogle merged 1 commit intogoogleapis:masterfrom
igorbernstein2:instance-name
Mar 20, 2018
Merged

Bigtable: copy InstanceName to data.models.#3063
garrettjonesgoogle merged 1 commit intogoogleapis:masterfrom
igorbernstein2:instance-name

Conversation

@igorbernstein2
Copy link
Contributor

This is a bit ugly: the autogenerate bigtable data api doesn't reference instances, only tables. So the resource name for instances is never generated. Up until this point I've been borrowing resource name from admin, which is really ugly. This PR simply copies the admin InstanceName to data's models package. At some point in the future when GAPIC implements common resource names, this can be cleaned up

This is a bit ugly: the autogenerate bigtable data api doesn't reference instances, only tables. So the resource name for instances is never generated. Up until this point I've been borrowing resource name from admin, which is really ugly. This PR simply copies the admin InstanceName to data's models package. At some point in the future when GAPIC implements common resource names, this can be cleaned up
@igorbernstein2 igorbernstein2 requested a review from pongad as a code owner March 20, 2018 03:58
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 20, 2018
Copy link
Member

@garrettjonesgoogle garrettjonesgoogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@igorbernstein2
Copy link
Contributor Author

Please merge when ready

@garrettjonesgoogle garrettjonesgoogle merged commit 7499e96 into googleapis:master Mar 20, 2018
@igorbernstein2 igorbernstein2 deleted the instance-name branch March 20, 2018 18:38
suztomo pushed a commit that referenced this pull request Mar 9, 2026
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
* chore: try with random channel hint

* chore: add option for random channel

* chore: actually use random channel option

* chore: only lock the specific wrapper

* chore: simplify creation and assignment

* chore: make more variables final

* chore: use separate pool

* chore: use a separate mux client

* chore: make init blocking

* chore: disable pending tx check

* chore: add call durations to client lib

* chore: add call_durations

* chore: use session pool for mux session

* chore: use mux database client

* chore: make mux client optional

* refactor: move multiplexed session handling to separate class

* chore: cleanup

* feat: add maintainer

* chore: add more tests

* chore: fix test failures

* fix: ChannelUsageTest should keep session in use for longer

* test: skip ChannelUsageTest in all cases

* chore: keep track of DatabaseDeleted errors

* fix: freeze server to prevent flakiness

* fix: freeze server to prevent flakiness

* test: add retry loop for second query

* chore: remove print statements and add emulator handling in test

* test: add tests for maintainer

* chore: register SessionConsumer for reflection

* chore: skip test as it fails on native build

Just skip the entire test, as the scenario is already covered by
other tests, and spending time on trying to figure out what is
happening in this failure is just a waste of time.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: add random channel hint as option

* chore: add single-use channel hint

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: single-use hint

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: use next available channel

* chore: keep track of num transactions and channels in use

* chore: remove println

* chore: remove option for using session pool for mux

* feat: add UNIMPLEMENTED handler

* chore: cleanup

* chore: add TODO for removing the unimplemented handling

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: run formatter

* test: fix flaky tests

Fixes #3050
Fixes #3081
Fixes #3080

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants