Skip to content

fix: registering duplicate instance#1033

Merged
daniel-sanche merged 2 commits intomainfrom
fix_register_instance
Nov 4, 2024
Merged

fix: registering duplicate instance#1033
daniel-sanche merged 2 commits intomainfrom
fix_register_instance

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 a review from a team as a code owner October 31, 2024 20:37
@daniel-sanche daniel-sanche requested review from a team 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
@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.

3 participants