Unverified Commit e80ae7f5 authored by Kevin Albertson's avatar Kevin Albertson Committed by GitHub
Browse files

CDRIVER-3645 Close operation connections to removed servers (#1618)



* add regression test: check connection counts of servers removed by SRV polling

* prune clients on push

Track last known server IDs in the client pool. Before doing an expensive prune, do a cheaper check to see if server IDs changed.

* test direct topology changes

Servers may be removed from the topology in other scenarios aside from SRV polling (e.g. during SDAM)

* document expected use of pop/push

---------

Co-authored-by: default avatarEzra Chung <88335979+eramongodb@users.noreply.github.com>
parent cc776c7d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment