mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-31 20:39:37 +08:00
Prior to the NodeWatcher being successfully initialized, or when it became stale any calls to `GetNodes` would return no data or stale data. This behavior results in the problems described in #22672. The NodeWatcher will now fallback to pulling data from the cache in the event that it has no data or stale data when callers attempt to retrieve nodes. This should reduce the time that it takes the a new Proxy or a Proxy with intermittent connectivity issues to Auth be able to route to nodes. The impact of this change should be noticeable in tests that create a Proxy and several Nodes and then immediately try to open a session on the Nodes. Closes #22672