We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e107fc commit c4a97e1Copy full SHA for c4a97e1
1 file changed
google/cloud/bigtable/data/_async/client.py
@@ -401,6 +401,9 @@ async def _manage_channel(
401
await self._ping_and_warm_instances(channel=new_sub_channel)
402
# cycle channel out of use, with long grace window before closure
403
await channel.replace_wrapped_channel(new_sub_channel, grace_period)
404
+ # invalidate caches
405
+ self.transport._stubs = {}
406
+ self.transport._prep_wrapped_messages(self.client_info)
407
# subtract the time spent waiting for the channel to be replaced
408
next_refresh = random.uniform(refresh_interval_min, refresh_interval_max)
409
next_sleep = max(next_refresh - (time.monotonic() - start_timestamp), 0)
0 commit comments