Skip to content
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

fix: registering duplicate instance #1033

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

daniel-sanche
Copy link
Contributor

Previously, creating multiple Table objects pointed at the same (instance, table, app_profile_id) would cause duplicate ping_and_warm calls, even though the table should already be warm. This was because the registration logic was checking for the presence of the instance_name, even though the _active_instances store was actually storing instance_keys

This PR fixes the bug, and adds a new unit test

@daniel-sanche daniel-sanche requested review from a team as code owners October 31, 2024 20:37
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/python-bigtable API. labels Oct 31, 2024
@daniel-sanche daniel-sanche merged commit 2bca8fb into main Nov 4, 2024
29 of 32 checks passed
@daniel-sanche daniel-sanche deleted the fix_register_instance branch November 4, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants