Problem
Session.add_or_renew_pool() creates pools asynchronously. Between pool creation start and publication into Session._pools, metadata refresh may replace the Host object for that host id or move it to a different endpoint. The async task can then publish a pool that was created for stale host state into the live session map.
Impact
A stale pool can overwrite the valid current pool and send later requests through connections that were opened for the wrong host identity or endpoint.
Problem
Session.add_or_renew_pool()creates pools asynchronously. Between pool creation start and publication intoSession._pools, metadata refresh may replace theHostobject for that host id or move it to a different endpoint. The async task can then publish a pool that was created for stale host state into the live session map.Impact
A stale pool can overwrite the valid current pool and send later requests through connections that were opened for the wrong host identity or endpoint.